Add image printing.
Fork of AS289R2 by
Revision 7:39c683fde12c, committed 2017-02-27
- Comitter:
- takehiro
- Date:
- Mon Feb 27 04:29:23 2017 +0000
- Parent:
- 6:6aac36a293c7
- Commit message:
- Update Method : 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 |
diff -r 6aac36a293c7 -r 39c683fde12c AS289R2.cpp --- a/AS289R2.cpp Fri Feb 03 10:02:52 2017 +0000 +++ b/AS289R2.cpp Mon Feb 27 04:29:23 2017 +0000 @@ -134,7 +134,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 unsigned char * image) { char buf[3] = {0x1C, 0x2A}; buf[2] = mode;
diff -r 6aac36a293c7 -r 39c683fde12c AS289R2.h --- a/AS289R2.h Fri Feb 03 10:02:52 2017 +0000 +++ b/AS289R2.h Mon Feb 27 04:29:23 2017 +0000 @@ -213,7 +213,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 unsigned char * image); /** Set Line Spaceing * @@ -308,6 +308,7 @@ /** Set as default BarCode Bar size * + * @brief Reset narrow-bar and wide-bar to its default value */ void defaultBarCodeBarSize(void);