Energia

Reference Language | Libraries | Comparison | Changes

## Libraries

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.

### Standard Energia Libraries (MSP430)

- AIR430Boost
- IRremote
- LiquidCrystal
- MspFlash
- Servo
- SPI
- Stepper
- Wire

### Standard Energia Libraries (Stellaris and Tiva C Series)

- EEPROM
- SPI
- Wire

## Contributed Libraries

If you're using one of these libraries, you need to install it first. To do so, download the library and unzip it. It should be in a folder of its own, and will typically contain at least two files, one with a .h suffix and one with a .cpp suffix. Open your Energia sketchbook folder. If there is already a folder there called libraries, place the library folder in there. If not, create a folder called libraries in the sketchbook folder, and drop the library folder in there. Then re-start the Energia programming environment, and you should see your new library in the Sketch > Import Library menu.

For details, see the page on the Energia environment.

### Contributed Energia Libraries

- Educational BoosterPack
- Capacitive Touch Library
- Charlieplexiing
- Andisplay for a common Anode display, and Kadisplay for a common cathode display
- Nordic nRF24L01+Library
- Software I2C Mater for MSP430G2553
- VirtualWire 1.10
- LM4F MPU6050 Library
- Petit FatFS SD Card Library
- Nokia 5110 LCD BoosterPack Library
- Bosch BMP085 Library
- DS18B20 Library
- Basic Software Serial TX Only Library
- NEC IR Library
- WS2811 LED Library
- Software Serial Class UART Libary
- Colour LCD 2.2" Touch Library
- Matrix Library
- 3-Axis Accelerometer Library
- DHT Library
- DHT22 Library
- MsTimer2 Library
- AD9850 DDS Library
- 23K640 SPI SRAM Library
- Universal Color LCD BoosterPack Library
- Nokia 7110 LCD Library
- NTC Thermometer Library
- LCD Button BoosterPack Library

For a guide to writing your own libraries, see this tutorial.

Reference Home

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

The text of the Energia Reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Energia reference is based on Arduino reference. Code samples in the reference are released into the public domain.

©Energia | Edit Page | Page History | Printable View | All Recent Site Changes