skip navigational linksPJRC
Shopping Cart Checkout Shipping Cost Download Website
Home MP3 Player 8051 Tools All Projects PJRC Store Site Map
You are here: Teensy Teensyduino Libraries Main List

PJRC Store
Teensy 3.1, $19.80
Teensy 2.0, $16.00
Teensy++ 2.0, $24.00
USB Cable, $4.00
Teensy
Main Page
Teensy 3.1
Getting Started
How-To Tips
Code Library
Projects
Teensyduino
Reference

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
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 YesYesYes
ST7735 Adafruit 1.8 inch (128x160) color TFT LCD display ??Yes
OctoWS28111.0 Control thousands of WS2811-based LEDs. NoNoYes
FastSPI_LED Efficiently control many types of LED strips. YesYesPartial
Matrix & Sprite1.0 Control many LEDs. YesYesYes
LedDisplay0.4 Very bright 4 or 8 character display. YesYesYes
LedControl- Control 7-segment display or LEDs. YesYesYes
DogLcd1.0.0 Use DOG-M Displays with only 4 pins YesYesYes
ST7565- Graphical LCD, 128x64 YesYesYes

Communication Libraries

LibraryVersionDescription Web Teensy
2.0
Teensy++
2.0
Teensy
3.0
Ethernet1.0.4 Connect to the Internet or a local Ethernet network. Ethernet allows you to create Internet applications like web servers. YesYesYes
AltSoftSerial1.2 Serial port emulated by software YesYesYes
NewSoftSerial10c Serial port emulated by software YesYesNo
SoftwareSerial0018 Known bugs - use NewSoftSerial YesYesPartial
MIDI2.6
3.2
Control & Communicate with Musical Instruments YesYesYes
PS2Keyboard2.4 PS2 Keyboard for user input YesYesYes
DmxSimple3 DMX lighting control - YesYes?
Firmata1.0.3 Control hardware from Flash, Max/MSP, Puredata, etc YesYesYes
Wire1.0.3 Communicate with I2C (2 wire) devices YesYesYes
SPI1.0 Communicate with SPI devices YesYesYes
OneWire2.2 Communicate with Maxim/Dallas 1-wire devices YesYesYes
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 YesYesYes
iPodSerial
TinyGPS12 Process GPS data into useful variables, Latitude, Longitude, Time, etc YesYesYes
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
3.0
Bounce1.5 Reliably read pushbuttons or mechanical sensors with contact chatter YesYesYes
Keypad3.1 Read Keypads with Row-Column Wiring YesYesYes
Encoder1.1 Use Quadrature Encoder Position/Rotation Sensors YesYesYes
DallasTemperature3.4.0 Yes
MAX66751.1 Thermocouples (high temperature measurement)
Ping2.0 Ultrasonic Distance Measurement YesYesYes
CapacitiveSensor05 Create Sensors That Can Detect Touch or Proximity YesYesYes
FreqCount1.1 Frequency Measurement, best for 1 kHz to 5 MHz range YesYesYes
FreqMeasure1.1 Frequency Measurement, best for 0.1 Hz to 1 kHz range YesYesYes
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
3.0
Servo1.0.3 Control servo motors, commonly used in remote control planes YesYesYes
Stepper1.0.4 Control stepper motors, which make slow & precise movement easy YesYesYes
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 NoYesYes
Tlc5940r014 16 or more 12 bit PWM outputs YesYesYes
SoftPWM0005 Additional PWM outputs on any pins YesYesYes
ShiftPWM Additional PWM outputs with shift registers YesYesYes
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
3.0
Time Time keeping, Date & Time, and sync to other sources. YesYesYes
TimeAlarms Run functions at specific times. YesYesYes
DS1307RTC Access a DS1307 Real Time Clock YesYesYes
Metro2.3.2 Schedule events to occur at regular intervals. YesYesYes
TimerOne Use Timer1 to run a function and control PWM signals YesYesYes
MsTimer20.7 Run a function every millisecond. YesYesYes
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
3.0
EEPROM1.0.4 Non-volatile (permanent) data storage YesYesYes
SD YesYesYes
SdFat20100611 YesYesYes
Flash
TextString
PString
Streaming
Base64 Encode binary into base-64, and vise-versa.
Entropy0.7.2 Generate truly random numbers YesYesYes

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