LAPIS Semiconductor - Lazurite Basic
AS-289R2のJP5をLazrite Basicの電圧設定に合わせてください。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | /* Lazurite IDE V1.00 */ /* * Thermal Printer Shield for Lazurite * Model:AS-289R2 * Sample Sourcecode * NADA ELECTRONICS, LTD. * By. Takehiro Yamaguchi */ void setup() { Serial.begin(9600); } void loop() { /* QR Data */ byte GsQr[] = { 0x1D,0x78,0x4C,0x04,0x54,0x45,0x53,0x54 }; /* Text Print */ Serial.print( "Thermal Printer Shield\r" ); Serial.print( "Text Printing.\r" ); Serial.print( "\r\r" ); // Line Feed x 2 /* QRcode Print */ Serial.write(GsQr, 8); Serial.print( "\r\r\r\r\r\r" ); // Line Feed x 6 /* Wait */ delay(5000); // 5sec } |