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 Search PJRC

PJRC Store
Teensy, $16
Teensy Pins, $19
Teensy++, $24
Teensy++ Pins, $27
USB Cable, $4
Teensy
Main Page
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
GLCD (ks0108)2 Graphics LCD library - Use a 128x64 graphical LCD. Displays fonts, bitmaps, pixels, lines, circles. YesYes
LiquidCrystal0017 Character type LCD library. Displays text and limited custom characters. YesYes
Matrix & Sprite0018 Control many LEDs. YesYes
LedDisplay0.1 Very bright 4 or 8 character display. YesYes
LedControl- Control 7-segment display or LEDs. YesYes
DogLcd1.0.0 Use DOG-M Displays with only 4 pins YesYes
Dogm1281.1.2 Use DogM 128 and similar Graphical Displays
ST7565- Graphical LCD, 128x64 YesYes

Communication Libraries

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

Input and Sensor Libraries

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

Device Control and Signal Output Libraries

LibraryVersionDescription Web Teensy
2.0
Teensy++
2.0
Servo0018 Control servo motors, commonly used in remote control planes YesYes
Stepper0018 Control stepper motors, which make slow & precise movement easy YesYes
AccelStepper1.8 Control stepper motors, with many extra features beyond the Stepper library
PID
DDS Sinewave
FrequencyTimer22 Create a zero jitter output frequency NoYes
Tlc5940r014 16 or more 12 bit PWM outputs YesYes
SoftPWM0003 Additional PWM outputs on any pins YesYes
ShiftPWM Additional PWM outputs with shift registers
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
Time- Time keeping
DateTime- Time keeping with software only and conversion to and from Hours, Minutes, Seconds, Days, Months, Years YesYes
Metro2.3 Schedule events to occur at regular intervals. YesYes
MsTimer20.6 Run a function every millisecond. YesYes
FlexiTimer2 Run a function on a configurable interval. YesYes

Data Manipulation Libraries

LibraryVersionDescription Web Teensy
2.0
Teensy++
2.0
EEPROM0018 Non-volatile (permanent) data storage YesYes
SD YesYes
SdFat20100611 YesYes
SDuFAT
Flash
TextString
PString
Streaming
Base64 Encode binary into base-64, and vise-versa.
TrueRandom