LAPIS Semiconductor - Lazurite Basic
AS-289R2のJP5をLazrite Basicの電圧設定に合わせてください。
/* Lazurite IDE V1.00 */
/*
* Thermal Printer Shield for Lazurite
* Model:AS-289R2
* Sample Sourcecode
* NADA ELECTRONICS, LTD.
* http://www.nada.co.jp
* 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
}