Libraries

Most code libraries designed for Arduino boards work on Teensy and Teensy++ with little or no modification. This page aims to collect all libraries with any modifications and special instructions specific to Teensy. Clearly, many libraries have yet to be tested....

Display Libraries

LibraryVersionDescription Web Teensy
2.0
Teensy++
2.0
Teensy
LC
Teensy
3.x
GLCD (ks0108)2 Graphics LCD library - Use a 128x64 graphical LCD. Displays fonts, bitmaps, pixels, lines, circles. YesYes
LiquidCrystal1.0.3 Character type LCD library. Displays text and limited custom characters. YesYesYes
SSD1306 Adafruit small OLED displays YesYesYesYes
ST7735 Adafruit 1.8 inch (128x160) color TFT LCD display ??Yes
OctoWS28111.0 Control thousands of WS2811-based LEDs. NoNoNoYes
FastLED Efficiently control many types of LED strips. YesYesYesYes
Matrix & Sprite1.0 Control many LEDs. YesYesYes
LedDisplay0.4 Very bright 4 or 8 character display. YesYesYes
LedControl- Control 7-segment display or LEDs. YesYesYesYes
DogLcd1.0.0 Use DOG-M Displays with only 4 pins YesYesYes
ST7565- Graphical LCD, 128x64 YesYesYesYes

Communication Libraries

LibraryVersionDescription Web Teensy
2.0
Teensy++
2.0
Teensy
LC
Teensy
3.x
Ethernet1.0.4 Connect to the Internet or a local Ethernet network. Ethernet allows you to create Internet applications like web servers. YesYesYesYes
AltSoftSerial1.2 Serial port emulated by software YesYesNoYes
NewSoftSerial10c Serial port emulated by software YesYesNoNo
SoftwareSerial0018 Known bugs - use NewSoftSerial YesYesPartialPartial
MIDI2.6
3.2
Control & Communicate with Musical Instruments YesYesYes
PS2Keyboard2.4 PS2 Keyboard for user input YesYesYesYes
DmxSimple3 DMX lighting control - YesYesNoYes
Firmata1.0.3 Control hardware from Flash, Max/MSP, Puredata, etc YesYesYesYes
Wire1.0.3 Communicate with I2C (2 wire) devices YesYesYesYes
SPI1.0 Communicate with SPI devices YesYesYesYes
OneWire2.2 Communicate with Maxim/Dallas 1-wire devices YesYesYesYes
XBee0.4 Communicate using XBee wireless modules YesYesYes
VirtualWire1.15 Very Cheap Wireless Communication YesYesYes
X100.4 Control X10 AC Power Devices YesYes
IRremote0.11 Infrared Remote Control, Send & Receive YesYesYesYes
iPodSerial
TinyGPS12 Process GPS data into useful variables, Latitude, Longitude, Time, etc YesYesYesYes
USBHostShield1.0 & 2.0 Connect other USB devices. YesYesNo
CmdMessenger Send messages between boards using serial

Input and Sensor Libraries

LibraryVersionDescription Web Teensy
2.0
Teensy++
2.0
Teensy
LC
Teensy
3.x
Bounce1.5 Reliably read pushbuttons or mechanical sensors with contact chatter YesYesYesYes
Keypad3.1 Read Keypads with Row-Column Wiring YesYesYesYes
Encoder1.1 Use Quadrature Encoder Position/Rotation Sensors YesYesYesYes
DallasTemperature3.4.0 Yes
MAX66751.1 Thermocouples (high temperature measurement)
Ping2.0 Ultrasonic Distance Measurement YesYesYesYes
CapacitiveSensor05 Create Sensors That Can Detect Touch or Proximity YesYesYes
FreqCount1.1 Frequency Measurement, best for 1 kHz to 5 MHz range YesYesYesYes
FreqMeasure1.1 Frequency Measurement, best for 0.1 Hz to 1 kHz range YesYesYesYes
SensorLib CdS light, Audio Mic, PIR Motion Sensors YesYes
TouchScreen Use glass touch sensitive screens

Device Control and Signal Output Libraries

LibraryVersionDescription Web Teensy
2.0
Teensy++
2.0
Teensy
LC
Teensy
3.x
Servo1.0.3 Control servo motors, commonly used in remote control planes YesYesYesYes
Stepper1.0.4 Control stepper motors, which make slow & precise movement easy YesYesYesYes
AccelStepper1.30 Control stepper motors, with many extra features beyond the Stepper library YesYesYes
PID
DDS Sinewave
FrequencyTimer22.1 Create a zero jitter output frequency NoYesNoYes
Tlc5940r014 16 or more 12 bit PWM outputs YesYesNoYes
SoftPWM0005 Additional PWM outputs on any pins YesYesYesYes
ShiftPWM Additional PWM outputs with shift registers YesYesYesYes
RgbLed Control RGB LEDs
TV Out Video Signal Output
MCP4728 Four 12 bit Analog Outputs

Timing and Time Keeping Libraries

LibraryVersionDescription Web Teensy
2.0
Teensy++
2.0
Teensy
LC
Teensy
3.x
Time Time keeping, Date & Time, and sync to other sources. YesYesYesYes
TimeAlarms Run functions at specific times. YesYesYesYes
DS1307RTC Access a DS1307 Real Time Clock YesYesYes
Metro2.3.2 Schedule events to occur at regular intervals. YesYesYesYes
TimerOne Use Timer1 to run a function and control PWM signals YesYesYesYes
MsTimer20.7 Run a function every millisecond. YesYesYesYes
FlexiTimer2 Run a function on a configurable interval. YesYesYes
TimerThree Use Timer3 to run a function and control PWM signals YesYes3.1

Data Manipulation Libraries

LibraryVersionDescription Web Teensy
2.0
Teensy++
2.0
Teensy
LC
Teensy
3.x
EEPROM1.0.4 Non-volatile (permanent) data storage YesYesYes
SD YesYesYesYes
SdFat20100611 YesYesYes
Flash
TextString
PString
Streaming
Base64 Encode binary into base-64, and vise-versa.
Entropy0.7.2 Generate truly random numbers (also RNGA on Teensy 3.5 & 3.6) YesYesYesYes

"Alt" indicates the library's functionality is available from other functions. See the library page for details.