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 printBitmap function is not ported yet.

Dependents:   3GReceiptPrinter

This is the Adafruit thermal receipt printer library ported hastily to mbed.

printBitmap is not yet ported. TBD

It needs testing properly. TBD

Files at this revision

API Documentation at this revision

Comitter:
ashleymills
Date:
Fri Jun 29 08:42:23 2012 +0000
Parent:
0:c4a48036e46f
Commit message:
Initial commit;

Changed in this revision

AdafruitThermal.cpp Show annotated file Show diff for this revision Revisions of this file
AdafruitThermal.h Show annotated file Show diff for this revision Revisions of this file
--- a/AdafruitThermal.cpp	Sat Jun 02 12:14:31 2012 +0000
+++ b/AdafruitThermal.cpp	Fri Jun 29 08:42:23 2012 +0000
@@ -12,7 +12,7 @@
   MIT license, all text above must be included in any redistribution
  ****************************************************/
  
-/** Ported to mbed by Ashley Mills **/
+/** Ported hastily to mbed by Ashley Mills - NOTE: printBitmap not ported, nothing tested **/
 #include "mbed.h" 
 #include "AdafruitThermal.h"
 
--- a/AdafruitThermal.h	Sat Jun 02 12:14:31 2012 +0000
+++ b/AdafruitThermal.h	Fri Jun 29 08:42:23 2012 +0000
@@ -12,7 +12,7 @@
   MIT license, all text above must be included in any redistribution
  ****************************************************/
 
-/** Ported to mbed by Ashley Mills **/
+/** Ported hastily to mbed by Ashley Mills - NOTE: printBitmap not ported, nothing tested **/
 
 #pragma once
 
@@ -83,9 +83,10 @@
     void printBarcode(char * text, uint8_t type);
     void setBarcodeHeight(int val);
 
-    void printBitmap(int w, int h, const uint8_t *bitmap);
-    void printBitmap(int w, int h, Stream *stream);
-    void printBitmap(Stream *stream);
+    // not ported
+    //void printBitmap(int w, int h, const uint8_t *bitmap);
+    //void printBitmap(int w, int h, Stream *stream);
+    //void printBitmap(Stream *stream);
 
     // ??
     void tab();