How to install libraries when using the Arduino IDE

Using libraries when programming can save a huge amount of both time and effort but what are they? what do they do? and how do I install them? Well we hope by reading this you'll understand the concept of libraries and how to use them in the Arduino IDE.

So what is a library and what do they do?

A software library is a collection code, classes, procedures, examples and much more that aims to allow users to achieve more functionality without having to write long and complex code themselves. 

Most libraries for use with the Arduino IDE include examples which can help to understand how the library is designed to be used and the functionality it can provide. Example code for libraries can be found be selecting File > Examples from the menu in the top left of the Arduino IDE.

 

Library Manager

The Arduino IDE has a handy Library Manager which lets you view all of the libraries you have installed and also install some common libraries. You can search for libraries using keywords such as the board name. It can be found by selecting Sketch > Include Library > Manage Libraries. 

 

Installing a library manually

Make sure you have the library you wish to install downloaded in a known location on you computer. For this guide we'll be using the Gameduino library as an example. Once you have it downloaded and know where it is saved open up the Arduino IDE and from the menu in the top left select Sketch > Include Library > Add .ZIP Library.

 

 

This will open a pop-up window where you should navigate to the location of the downloaded file and click Open.

You can now verify that the library has been installed by searching for it in the Library Manager or by checking for the Examples which can be found under File > Examples and then the library name selected.

As always we love to hear about what you're working on and possibly share it with our following. If you have any further questions about the Arduino IDE or anything else please don't hesitate to contact us.

Previous article OnionOS just got better!
Next article How to make an interactive sound wave print

Check out our latest products...

Teensy Usb Cable Micro-B To Standard-B Panel Mount Adaptor - Cables And Adapters
Lamp:bit - Street Light For Bbc Micro:bit - Micro:bit

LAMP:bit - Street Light for BBC micro:bit

£4.99 inc VAT
£4.16 ex VAT
Klaw Kit - Servo Powered Gripper - Robot

Klaw Kit - Servo Powered Gripper

£6.60 inc VAT
£5.50 ex VAT
Sparkfun Pro Nrf52840 Mini - Bluetooth Development Board (Dev-15025) - Bluetooth
Adafruit I2S Audio Bonnet For Raspberry Pi - Uda1334A (Id: 4037) - Audio
Lithium Polymer Battery - 400Mah - Batteries

Lithium Polymer Battery - 400mAh

£6.38 inc VAT
£5.32 ex VAT
Shapeoko Touch Probe - Cnc

Shapeoko Touch Probe

£119.99 inc VAT
£99.99 ex VAT
Bare Conductive Electric Paint Circuit Kit - Conductive Ink

Bare Conductive Electric Paint Circuit Kit

£12.00 inc VAT
£10.00 ex VAT