AS-289R2 Thermal Printer shield control library

Dependents:   AS-289R2_Hello-World AS-289R2_Hello-World-mbed-OS hybrid_image_as289r2 microbit_AS-289R2 ... more

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Sat Mar 11 08:38:58 2017 +0000
Parent:
8:50020195de05
Child:
10:b7d6c02caf97
Commit message:
Change a parameter type of printBitmapImage

Changed in this revision

AS289R2.cpp Show annotated file Show diff for this revision Revisions of this file
AS289R2.h Show annotated file Show diff for this revision Revisions of this file
--- a/AS289R2.cpp	Sat Mar 11 03:22:13 2017 +0000
+++ b/AS289R2.cpp	Sat Mar 11 08:38:58 2017 +0000
@@ -141,7 +141,7 @@
     _serial.putc('\0');
 }
 
-void AS289R2::printBitmapImage(uint32_t mode, uint16_t lines, const char * image)
+void AS289R2::printBitmapImage(uint32_t mode, uint16_t lines, const uint8_t * image)
 {
     char buf[3] = {0x1C, 0x2A};
     buf[2] = mode;
--- a/AS289R2.h	Sat Mar 11 03:22:13 2017 +0000
+++ b/AS289R2.h	Sat Mar 11 08:38:58 2017 +0000
@@ -266,7 +266,7 @@
      * @param lines Number of print line
      * @param image Data to be printed
      */
-    void printBitmapImage(uint32_t cmd, uint16_t lines, const char * image);
+    void printBitmapImage(uint32_t cmd, uint16_t lines, const uint8_t * image);
 
     /** Set Line Spaceing
      *