Thermal Printer Basic Print Operations
Diff: APSEPM207LV.cpp
- Revision:
- 1:8372894bfc19
- Parent:
- 0:ddb341bbd487
--- a/APSEPM207LV.cpp Mon May 21 07:27:19 2018 +0000
+++ b/APSEPM207LV.cpp Mon May 21 09:05:47 2018 +0000
@@ -128,7 +128,25 @@
//0x20 Paper Absent
}
+void APSEPM207LV::printModes(uint8_t n)
+{
+ _serial.putc(0x1B);
+ _serial.putc(0x21);
+ _serial.putc(n);
+
+
+//Possible values for n
+//00 = 32 Char Normal 08 = 32 Char BOLD
+//01 = 24 Char Normal 09 = 24 Char BOLD
+//11 = 24 Char Double Height 19 = 24 Char Double Height & BOLD
+//21 = 24 Char Double Width 29 = 24 Char Double Width & BOLD
+//31 = 24 Char Double Height & Double Width 39 = 24 Char Double Height & Double Width & BOLD
+//10 = 32 Char Double Height 18 = 32 Char Double Height & BOLD
+//20 = 32 Char Double Width 28 = 32 Char Double Width & BOLD
+//30 = 32 Char Double Height & Double Width 38 = 32 Char Double Height & Double Width & BOLD
+
+}
void APSEPM207LV::clearBuffer(void)
{
@@ -282,6 +300,8 @@
_serial.putc(script);
}
+
+
void APSEPM207LV::clearScript()
{
_serial.printf("\x1B\x73\x30");
@@ -347,11 +367,4 @@
}
-//00 = 32 Char Normal 08 = 32 Char BOLD
-//01 = 24 Char Normal 09 = 24 Char BOLD
-//11 = 24 Char Double Height 19 = 24 Char Double Height & BOLD
-//21 = 24 Char Double Width 29 = 24 Char Double Width & BOLD
-//31 = 24 Char Double Height & Double Width 39 = 24 Char Double Height & Double Width & BOLD
-//10 = 32 Char Double Height 18 = 32 Char Double Height & BOLD
-//20 = 32 Char Double Width 28 = 32 Char Double Width & BOLD
-//30 = 32 Char Double Height & Double Width 38 = 32 Char Double Height & Double Width & BOLD
+