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

Revision:
2:ce25d0949cbd
Parent:
0:982a7efb3ef0
Child:
3:f3dfeb7ccb22
--- a/AS289R2.h	Sun Sep 04 03:09:27 2016 +0000
+++ b/AS289R2.h	Mon Sep 19 13:46:03 2016 +0000
@@ -162,14 +162,14 @@
      * @param err QR code error correction level e.g. AS289R2::QR_ERR_LVL_M
      * @param buf Data to be printed
      */
-    void printQRCode(uint32_t err, char* buf);
+    void printQRCode(uint32_t err, const char* buf);
 
     /** Print Bar code
      *
      * @param code Type of Bar code e.g. AS289R2::JAN13
      * @param buf Data to be printed
      */
-    void printBarCode(uint32_t code, char* param);
+    void printBarCode(uint32_t code, const char* param);
 
     /** Print bitmap image
      *
@@ -177,7 +177,7 @@
      * @param lines Number of print line
      * @param image Data to be printed
      */
-    void printBitmapImage(uint32_t cmd, uint16_t lines, char * image);
+    void printBitmapImage(uint32_t cmd, uint16_t lines, const char * image);
 
 private:
     Serial *_serial_p;