Thermal Printer Basic Print Operations

Dependents:   Thermal_Printer

Revision:
1:8372894bfc19
Parent:
0:ddb341bbd487
diff -r ddb341bbd487 -r 8372894bfc19 APSEPM207LV.h
--- a/APSEPM207LV.h	Mon May 21 07:27:19 2018 +0000
+++ b/APSEPM207LV.h	Mon May 21 09:05:47 2018 +0000
@@ -3,7 +3,7 @@
  * @file    APSEPM207LV.h
  * @author  Shivanand Gowda 
  * @version V1.0.0
- * @date    11 March 2017
+ * @date    21 May 2018
  * @brief   This file contains the class of a APSEPM207LV thermal control component
  ******************************************************************************
  * @attention
@@ -37,53 +37,7 @@
 #pragma diag_suppress 870
 #endif
 
-/**  A printer interface for driving AS-289R2 thermal printer shield of NADA Electronics, Ltd.
- *
- * @code
- * #include "mbed.h"
- * #include "AS829R2.h"
- *
- * Serial pc(USBTX, USBRX);
- * AS829R2 tp(D1); // tx, 9600bps
- *
- * int main()
- * {
- *     tp.initialize();
- *     tp.putLineFeed(2);
- *
- *     tp.printf("** Thermal Printer Shield **\r\r");
- *
- *     tp.setDoubleSizeWidth();
- *     tp.printf("  AS-289R2\r\r");
- *     tp.clearDoubleSizeWidth();
- *
- *     tp.printf("日本語文字列の印字テスト:24x24\r");
- *     tp.setKanjiFont(APSEPM207LV::KANJI_16x16);
- *     tp.setANKFont(APSEPM207LV::ANK_8x16);
- *     tp.printf("日本語文字列の印字テスト:16x16\r\r");
- *
- *     tp.setKanjiFont(APSEPM207LV::KANJI_DEFAULT);
- *     tp.setANKFont(APSEPM207LV::ANK_DEFAULT);
- *     tp.setDoubleSizeWidth();
- *     tp.printf("ABCDEFG 0123456789\r");
- *     tp.clearDoubleSizeWidth();
- *
- *     tp.setDoubleSizeHeight();
- *     tp.printf("ABCDEFG 0123456789\r");
- *     tp.clearDoubleSizeHeight();
- *
- *     pc.printf("AS-289R2 thermal printer shield test\n\n");
- *     while(1) {
- *         if (pc.readable()) {
- *             int c = pc.getc();
- *             pc.putc(c);
- *             tp.putc(c);
- *         }
- *     }
- * }
- * 
- * @endcode
- */
+
 class APSEPM207LV : public Stream
 {
 public:
@@ -209,6 +163,7 @@
      void whiteblack(uint8_t n1);
     void papersensorstatus(void);
     void carriageReturn(void);
+    void printModes(uint8_t n);  
      /** pur Horizontal Tab
      *
      */