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.
main.cpp
00001 #include "mbed.h" 00002 00003 #include "APSEPM207LV.h" 00004 00005 Serial pc(USBTX, USBRX); 00006 APSEPM207LV tp(D1,D0); // tx, 9600bps 00007 00008 int main() 00009 { 00010 tp.initialize(); 00011 tp.putLineFeed(2); 00012 00013 tp.printf("** Thermal Printer Shield **\r\r"); 00014 00015 00016 tp.setKanjiFont(APSEPM207LV::KANJI_DEFAULT); 00017 tp.setANKFont(APSEPM207LV::ANK_DEFAULT); 00018 tp.setDoubleSizeWidth(); 00019 tp.printf("ABCDEFG 0123456789\r"); 00020 tp.clearDoubleSizeWidth(); 00021 00022 tp.setDoubleSizeHeight(); 00023 tp.printf("ABCDEFG 0123456789\r"); 00024 tp.clearDoubleSizeHeight(); 00025 00026 pc.printf("APS Thermal Printer\n\n"); 00027 while(1) { 00028 if (pc.readable()) { 00029 int c = pc.getc(); 00030 pc.putc(c); 00031 tp.putc(c); 00032 } 00033 } 00034 } 00035
Generated on Wed Jul 13 2022 21:27:42 by
1.7.2