This is the Adafruit thermal printer, whose Arduino library is published here: http://www.ladyada.net/products/thermalprinter/. This is a basic port to mbed that needs proper testing. The first printBitmap function is implemented but not fully tested, the stream versions are not ported yet.

Dependents:   SMS_LEDMatrixPrinter

Fork of AdafruitThermalPrinter by Ashley Mills

Revision:
3:0e12bed6b295
Parent:
2:6c38e763c285
--- a/AdafruitThermal.h	Tue Nov 20 13:07:13 2012 +0000
+++ b/AdafruitThermal.h	Wed Dec 05 10:00:33 2012 +0000
@@ -17,6 +17,7 @@
 #pragma once
 
 #include "mbed.h"
+#include "rtos.h"
 
 #define UPC_A 0
 #define UPC_E 1
@@ -31,8 +32,10 @@
 #define MSI 10
 
 
-#define PRINTER_PRINT(a) _printer->putc(a);
-#define delay(a) wait(a/1000)
+//#define PRINTER_PRINT(a) _printer->putc(a);
+#define PRINTER_PRINT(a) directPutc(a);
+//#define delay(a) wait(a/1000)
+#define delay(a) Thread::wait(a)
 
 
 
@@ -46,6 +49,7 @@
     void test();
     void testPage();
 
+    void directPutc( uint8_t c );
     size_t write(uint8_t c);