Standard Libraries for Arduino

Standard Libraries For Arduino

The Arduino environment can be extended through the use of standard libraries for Arduino, just like most programming platforms. Libraries provide extra functionality for use in sketches, e.g. working with hardware or manipulating data.

To use a library in a sketch, select it from Sketch > Import Library.

A number of libraries come installed with the IDE, but you can also download or create your own. See these instructions for details on installing libraries. There’s also a tutorial on writing your own libraries. See the API Style Guide for information on making a good Arduino-style API for your library.

Standard Libraries

EEPROM 

reading and writing to “permanent” storage

Ethernet 

for connecting to the internet using the Arduino Ethernet Shield, Arduino Ethernet Shield 2 and Arduino Leonardo ETH

Firmata 

for communicating with applications on the computer using a standard serial protocol.

GSM 

for connecting to a GSM/GRPS network with the GSM shield.

LiquidCrystal 

for controlling liquid crystal displays (LCDs)

SD 

for reading and writing SD cards

Servo 

for controlling servo motors

SPI 

for communicating with devices using the Serial Peripheral Interface (SPI) Bus

SoftwareSerial 

for serial communication on any digital pins. Version 1.0 and later of Arduino incorporate Mikal Hart‘s NewSoftSerial library as SoftwareSerial.

Stepper 

for controlling stepper motors

TFT 

for drawing text , images, and shapes on the Arduino TFT screen

WiFi 

for connecting to the internet using the Arduino WiFi shield

Wire 

Two Wire Interface (TWI/I2C) for sending and receiving data over a net of devices or sensors.

 

0