Add image printing.

Fork of AS289R2 by Toyomasa Watarai

Revision:
2:ce25d0949cbd
Parent:
1:ee311b8f969b
Child:
4:a2e0373a9cd1
diff -r ee311b8f969b -r ce25d0949cbd AS289R2.cpp
--- a/AS289R2.cpp	Sun Sep 04 03:09:27 2016 +0000
+++ b/AS289R2.cpp	Mon Sep 19 13:46:03 2016 +0000
@@ -107,7 +107,7 @@
     _serial.putc(font);
 }
 
-void AS289R2::printQRCode(uint32_t err, char* param)
+void AS289R2::printQRCode(uint32_t err, const char* param)
 {
     uint32_t len = strlen(param);
     char buf[4] = {0x1D, 0x78};
@@ -121,7 +121,7 @@
     }
 }
 
-void AS289R2::printBarCode(uint32_t code, char* param)
+void AS289R2::printBarCode(uint32_t code, const char* param)
 {
     char buf[3] = {0x1D, 0x6B};
     buf[2] = code;
@@ -134,7 +134,7 @@
     _serial.putc('\0');
 }
 
-void AS289R2::printBitmapImage(uint32_t mode, uint16_t lines, char * image)
+void AS289R2::printBitmapImage(uint32_t mode, uint16_t lines, const char * image)
 {
     char buf[3] = {0x1C, 0x2A};
     buf[2] = mode;