Sei sulla pagina 1di 8

(https://www.arduino.

cc)

SIGN IN STORE (//STORE.ARDUINO.CC) SOFTWARE EDUCATION

Reference   Language (//www.arduino.cc/en/Reference/HomePage) | Libraries


(//www.arduino.cc/en/Reference/Libraries) | Comparison (//www.arduino.cc/en/Reference/Comparison)
| Changes (//www.arduino.cc/en/Reference/Changes)

Libraries
The Arduino environment can be extended through the use of libraries, 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 (//www.arduino.cc/en/Guide/Libraries) for details on installing libraries. There's also a
tutorial on writing your own libraries (//www.arduino.cc/en/Hacking/LibraryTutorial). See the API Style
Guide (//www.arduino.cc/en/Reference/APIStyleGuide) for information on making a good Arduino-style
API for your library.

Standard Libraries
- EEPROM (//www.arduino.cc/en/Reference/EEPROM) - reading and writing to "permanent" storage
- Ethernet (//www.arduino.cc/en/Reference/Ethernet) - for connecting to the internet using the
Arduino Ethernet Shield, Arduino Ethernet Shield 2 and Arduino Leonardo ETH
- Firmata (//www.arduino.cc/en/Reference/Firmata) - for communicating with applications on the
computer using a standard serial protocol.
- GSM (//www.arduino.cc/en/Reference/GSM) - for connecting to a GSM/GRPS network with the GSM
shield.
- LiquidCrystal (//www.arduino.cc/en/Reference/LiquidCrystal) - for controlling liquid crystal displays
(LCDs)
- SD (//www.arduino.cc/en/Reference/SD) - for reading and writing SD cards
- Servo (//www.arduino.cc/en/Reference/Servo) - for controlling servo motors
- SPI (//www.arduino.cc/en/Reference/SPI) - for communicating with devices using the Serial
Peripheral Interface (SPI) Bus
- SoftwareSerial (//www.arduino.cc/en/Reference/SoftwareSerial) - for serial communication on any
digital pins. Version 1.0 and later of Arduino incorporate Mikal Hart (http://arduiniana.org/)'s
NewSoftSerial library as SoftwareSerial.
- Stepper (//www.arduino.cc/en/Reference/Stepper) - for controlling stepper motors
- TFT (//www.arduino.cc/en/Reference/TFTLibrary) - for drawing text , images, and shapes on the
Arduino TFT screen
- WiFi (//www.arduino.cc/en/Reference/WiFi) - for connecting to the internet using the Arduino WiFi
shield
- Wire (//www.arduino.cc/en/Reference/Wire) - Two Wire Interface (TWI/I2C) for sending and
receiving data over a net
S I GofNdevices
IN or sensors. EDUCATION
The Matrix and Sprite libraries are no longer part of the core distribution.

101 Only Libraries


- CurieBLE (//www.arduino.cc/en/Reference/CurieBLE) - Interact with smartphones and tablets with
Bluetooth Low Energy (BLE).
- CurieIMU (//www.arduino.cc/en/Reference/CurieIMU) - Manage the on-board accelerometer and
gyro.
- CurieTimerOne (//www.arduino.cc/en/Reference/CurieTimerOne) - Allows to use Timer functions.
- CurieTime (//www.arduino.cc/en/Reference/CurieTime) - Allows to control and use the internal RTC
(Real Time Clock)

Due Only Libraries


- Audio (//www.arduino.cc/en/Reference/Audio) - Play audio files from a SD card.

Due, Zero and MKR1000 Libraries


- USBHost (//www.arduino.cc/en/Reference/USBHost) - Communicate with USB peripherals like mice
and keyboards.
- Scheduler (//www.arduino.cc/en/Reference/Scheduler) - Manage multiple non-blocking tasks.

Zero and all the SAMD21 based MKR boards libraries


- AudioFrequencyMeter (//www.arduino.cc/en/Reference/AudioFrequencyMeter) - Sample an audio
signal and get its frequency back
- AudioZero (//www.arduino.cc/en/Reference/AudioZero) - Play audio files from a SD card
- RTC (//www.arduino.cc/en/Reference/RTC) - Real Time Clock to schedule events
- ArduinoSound (//www.arduino.cc/en/Reference/ArduinoSound) - A simple way to play and analyze
audio data
- I2S (//www.arduino.cc/en/Reference/I2S) - To use the I2S protocol on SAMD21

WiFi 101 and MKR1000 Library


- WiFi101 (//www.arduino.cc/en/Reference/WiFi101) - library to be used only with Wifi shield 101
- WiFi101OTA (//www.arduino.cc/en/Reference/WiFi101OTA) - Over-the-air updates on MKR1000

MKR WiFi 1010,S IMKR


GN IN
VIDOR 4000, Arduino NANO 33 IoT
EDUCATION
and Arduino UNO WiFi Rev.2
- WiFi NINA (//www.arduino.cc/en/Reference/WiFiNINA) - library to use the WiFi Nina module of the
above boards.

Arduino Nano 33 BLE, Nano 33 BLE Sense, NANO 33 IoT,


Uno WiFi Rev 2, MKR WiFi 1010.
- ArduinoBLE (//www.arduino.cc/en/Reference/ArduinoBLE) - library to use the BLE features of the
above boards.

Arduino Nano 33 IoT and UNO WiFi Rev. 2


- ArduinoLSM6DS3 (//www.arduino.cc/en/Reference/ArduinoLSM6DS3) - library to use the LSM6DS3 6
axis IMU available on the Arduino Nano 33 IoT and the Arduino UNO WiFi Rev. 2.

Arduino Nano 33 BLE and BLE Sense


- ArduinoLSM9DS1 (//www.arduino.cc/en/Reference/ArduinoLSM9DS1) - library to use the LSM9DS1 9
axis IMU available on the Arduino Nano 33 BLE and the Arduino Nano 33 BLE Sense.

Arduino Nano 33 BLE Sense


- PDM (//www.arduino.cc/en/Reference/PDM) - library to use the digital microphone MP34DT05, our
library PDM can be used also with our ArduinoSound
(//www.arduino.cc/en/Reference/ArduinoSound) library.
- ArduinoAPDS9960 (//www.arduino.cc/en/Reference/ArduinoAPDS9960) - library to use the gesture
sensor APDS9960; it senses gesture, color, ambience illumination and proximity.
- ArduinoLPS22HB (//www.arduino.cc/en/Reference/ArduinoLPS22HB) - library to use the barometer
and temperature sensor LPS22; it is an ultra-compact sensor which functions as a digital output
barometer.
- ArduinoHTS221 (//www.arduino.cc/en/Reference/ArduinoHTS221) - library to use the relative
humidity sensor HTS221; it is an ultra-compact sensor that uses a polymer dielectric planar capacitor
structure capable of detecting relative humidity variations, returned as digital output on a serial
interface.
MKR Motor Carrier Only Library
- MKR Motor Carrier (//www.arduino.cc/en/Reference/MKRMotorCarrier) - Library to be used with the
MKR Motor Carrier SIGN IN EDUCATION

MKR FOX 1200 only Library


- SigFox (//www.arduino.cc/en/Reference/SigFox) - library to be used only with MKRFOX1200

MKR WAN 1300 only Library


- MKRWAN (//www.arduino.cc/en/Reference/MKRWAN) - library to be used only with MKR WAN 1300

MKR GSM 1400 only Library


- MKRGSM (//www.arduino.cc/en/Reference/MKRGSM) - library to be used only with MKR GSM 1400

MKR NB 1500 only Library


- MKRNB (//www.arduino.cc/en/Reference/MKRNB) - library to be used only with MKR NB 1500

MKR 1000, MKR WiFi 1010, MKR GSM 1400, MKR NB


1500, MKR RS485 Shield, UNO WiFI Rev.2, Ethernet
Shield only Library
- Arduino Modbus (//www.arduino.cc/en/ArduinoModbus/ArduinoModbus) - library to communicate
with Modbus Protocol over RS485 and TCP with Modbus clients and servers.

MKR GPS Shield Library


- ArduinoMKRGPS (//www.arduino.cc/en/Reference/ArduinoMKRGPS) - library to be used with the
Arduino MKR GPS Shield

MKR RGB Shield Libraries


- ArduinoMKRRGB (//www.arduino.cc/en/Reference/ArduinoMKRRGB) - library to be used with the
Arduino MKR RGB Shield
- ArduinoGraphics (//www.arduino.cc/en/Reference/ArduinoGraphics) - library with graphic primitives,
works also with the MKR RGB Shield
MKR 485 Shield Libraries
- ArduinoRS485 (//www.arduino.cc/en/Reference/ArduinoRS485) - library that implements RS485 on
the Arduino MKR RS485
S Ishield
GN IN EDUCATION

MKR ENV Shield Library


- ArduinoMKRENV (//www.arduino.cc/en/Reference/ArduinoMKRENV) - library to read all the values
measued by the Arduino MKR ENV Shield sensors

MKR THERM Shield Library


- ArduinoMKRTHERM (//www.arduino.cc/en/Reference/ArduinoMKRTHERM) - library to read the
sensors connected to the Arduino MKR THERM Shield

Esplora Only Library


- Esplora (//www.arduino.cc/en/Reference/EsploraLibrary) - this library enable you to easily access to
various sensors and actuators mounted on the Esplora board.

Arduino Robot Library


- Robot (//www.arduino.cc/en/Reference/RobotLibrary) - this library enables easy access to the
functions of the Arduino Robot.

Yún devices Library


- Bridge Library (//www.arduino.cc/en/Reference/YunBridgeLibrary) - Enables communication
between the Linux processor and the microcontroller on the Yún.
- Ciao Library (//www.arduino.cc/en/Reference/Ciao) - Aims to simplify interaction between
microcontroller and Linino OS allowing a variety of connections with most common protocols

USB Libraries (Leonardo, Micro, Due, Zero and Esplora)


- Keyboard (//www.arduino.cc/en/Reference/MouseKeyboard) - Send keystrokes to an attached
computer.
- Mouse (https://www.arduino.cc/reference/en/language/functions/usb-leonardo-and-due-
only/mouse/) - Control cursor movement on a connected computer.
Contributed Libraries
If you're using one of these libraries, you need to install it first. See these instructions
(//www.arduino.cc/en/Guide/Libraries) for details on installation. There's also a tutorial on writing your
SIGN IN EDUCATION
own libraries (//www.arduino.cc/en/Hacking/LibraryTutorial).

Communication (networking and protocols):

- Messenger (http://www.arduino.cc/playground/Code/Messenger) - for processing text-based


messages from the computer
- NewSoftSerial (http://sundial.org/arduino/index.php/newsoftserial/) - an improved version of the
SoftwareSerial library
- OneWire (http://www.arduino.cc/playground/Learning/OneWire) - control devices (from Dallas
Semiconductor) that use the One Wire protocol.
- PS2Keyboard (http://www.arduino.cc/playground/Main/PS2Keyboard) - read characters from a PS2
keyboard.
- Simple Message System (http://www.arduino.cc/playground/Code/SimpleMessageSystem) - send
messages between Arduino and the computer
- SSerial2Mobile (http://code.google.com/p/sserial2mobile/) - send text messages or emails using a
cell phone (via AT commands over software serial)
- Webduino (http://code.google.com/p/webduino/) - extensible web server library (for use with the
Arduino Ethernet Shield)
- X10 (//www.arduino.cc/en/Tutorial/X10) - Sending X10 signals over AC power lines
- XBee (http://code.google.com/p/xbee-arduino/) - for communicating with XBees in API mode
- SerialControl (http://www.arduino.cc/playground/Code/SerialControl) - Remote control other
Arduinos over a serial connection

Sensing:

- Capacitive Sensing (http://www.arduino.cc/playground/Main/CapSense) - turn two or more pins


into capacitive sensors
- Debounce (http://www.arduino.cc/playground/Code/Debounce) - for reading noisy digital inputs
(e.g. from buttons)

Displays and LEDs:

- GFX (https://github.com/adafruit/Adafruit-GFX-Library) - base class with standard graphics routines


(by Adafruit Industries (http://www.adafruit.com))
- GLCD (http://www.arduino.cc/playground/Code/GLCDks0108) - graphics routines for LCD based on
the KS0108 or equivalent chipset.
- Improved LCD library
(http://web.alfredstate.edu/weimandn/arduino/LiquidCrystal_library/LiquidCrystal_index.html)
fixes LCD initialization bugs in official Arduino LCD library
- LedControl (http://www.arduino.cc/playground/Main/LedControl)
SIGN IN - for controlling LED matrices
E D U C AorT I O N
seven-segment displays with a MAX7221 or MAX7219.
- LedControl (http://www.wayoda.org/arduino/ledcontrol/index.html) - an alternative to the Matrix
library for driving multiple LEDs with Maxim chips.
- LedDisplay (http://www.arduino.cc/playground/Main/LedDisplay) - control of a HCMS-29xx
(http://sigma.octopart.com/23295/datasheet/Avago-HCMS-2973.pdf) scrolling LED display.
- Matrix (http://wiring.org.co/reference/libraries/Matrix/index.html) - Basic LED Matrix display
manipulation library
- PCD8544 (https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library) - for the LCD
controller on Nokia 55100-like displays (by Adafruit Industries (http://www.adafruit.com))
- Sprite (http://wiring.org.co/reference/libraries/Sprite/index.html) - Basic image sprite manipulation
library for use in animations with an LED matrix
- ST7735 (https://github.com/adafruit/Adafruit-ST7735-Library) - for the LCD controller on a 1.8",
128x160 TFT screen (by Adafruit Industries (http://www.adafruit.com))

Audio and Waveforms:

- FFT (http://wiki.openmusiclabs.com/wiki/ArduinoFFT) - frequency analysis of audio or other analog


signals
- Tone (http://code.google.com/p/arduino-tone/) - generate audio frequency square waves in the
background on any microcontroller pin

Motors and PWM:

- TLC5940 (http://www.arduino.cc/playground/Learning/TLC5940) - 16 channel 12 bit PWM controller.

Timing:

- DateTime (http://www.arduino.cc/playground/Code/DateTime) - a library for keeping track of the


current date and time in software.
- Metro (http://www.arduino.cc/playground/Code/Metro) - help you time actions at regular intervals
- MsTimer2 (http://www.arduino.cc/playground/Main/MsTimer2) - uses the timer 2 interrupt to
trigger an action every N milliseconds.

Utilities:

- PString (http://sundial.org/arduino/index.php/pstring/) - a lightweight class for printing to buffers


- Streaming (http://arduiniana.org/libraries/streaming/) - a method to simplify print statements

Reference Home (//www.arduino.cc/en/Reference/HomePage)


SIGN IN EDUCATION

Corrections, suggestions, and new documentation should be posted to the Forum


(http://arduino.cc/forum/index.php/board,23.0.html).

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0
License (http://creativecommons.org/licenses/by-sa/3.0/). Code samples in the reference are released
into the public domain.

NEWSLETTER

Enter your email to sign up SUBSCRIBE

Terms Of Service (//www.arduino.cc/en/Main/TermsOfService)


Privacy Policy (//www.arduino.cc/en/Main/PrivacyPolicy)

Contact Us (//www.arduino.cc/en/Main/ContactUs)
About Us (//www.arduino.cc/en/Main/AboutUs)
Distributors (//store.arduino.cc/distributors)
Careers (//careers.arduino.cc)
Security (//www.arduino.cc/en/Main/Security)
© 2020 Arduino (//www.arduino.cc/en/Main/CopyrightNotice)

(https://www.facebook.com/official.arduino)
(https://twitter.com/arduino)
(https://www.instagram.com/arduino.cc/)
(https://github.com/arduino/)
(https://www.flickr.com/photos/arduino_cc)
(https://www.youtube.com/user/arduinoteam)

Potrebbero piacerti anche