Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Thermal_HelloWorld
Fork of AdafruitThermalPrinter by
Revision 3:1f832bfe41d1, committed 2016-03-16
- Comitter:
- aross34
- Date:
- Wed Mar 16 19:55:29 2016 +0000
- Parent:
- 2:de26317d87a6
- Commit message:
- Trouble with Inverse On even following user manual strictly
Changed in this revision
| AdafruitThermal.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/AdafruitThermal.cpp Wed Mar 16 01:40:10 2016 +0000
+++ b/AdafruitThermal.cpp Wed Mar 16 19:55:29 2016 +0000
@@ -206,13 +206,14 @@
}
void AdafruitThermal::inverseOn(){
- //setPrintMode(INVERSE_MASK);
- writeBytes(29, 'B', 1);
+ setPrintMode(INVERSE_MASK);
+ //writeBytes(29, 66, 1);
}
void AdafruitThermal::inverseOff(){
- //unsetPrintMode(INVERSE_MASK);
- writeBytes(29, 'B', 0, 10);
+ unsetPrintMode(INVERSE_MASK);
+ //writeBytes(29, 'B', 0, 10);
+ //writeBytes(29, 66, 0);
}
void AdafruitThermal::upsideDownOn(){

Adafruit Thermal Printer