This is an Arduino library for the Adafruit Thermal Printer. Pick one up at --> https://www.adafruit.com/product/597 These printers use TTL serial to communicate, 2 pins are required.
Full tutorial with wiring diagrams, images, etc. is available at: https://learn.adafruit.com/mini-thermal-receipt-printer
Before loading the example code, or even opening the Arduino software, place the Adafruit_Thermal folder in your Arduino library.
////ARDUINO LIBRARY LOCATION//// On your Mac:: In (home directory)/Documents/Arduino/Libraries On your PC:: My Documents\Arduino\libraries On your Linux box: (home directory)/sketchbook/libraries
Adafruit invests time and resources providing this open source code. Please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries, with contributions from the open source community. Originally based on Thermal library from bildr.org MIT license, all text above must be included in any redistribution.