AS-289R2 Thermal Printer Shield

ESP32-DevKitC

Espressif

Please confirm the position of jumper(JP5)

/*
 * Thermal Printer Shield for ESP32 DevKitC
 * Model:AS-289R2 & AS-289R
 * Sample Sourcecode
 * NADA ELECTRONICS, LTD.
 * http://www.nada.co.jp
 * By. Takehiro Yamaguchi
*/

HardwareSerial tp = HardwareSerial(2);

void setup()
{
  tp.begin(9600);
}
 
void loop()
{
  /* Text Print */
  tp.print("Thermal Printer Shield\r");
  tp.print("Text Printing.\r");
  tp.print("\r\r");     // Line Feed x 2
  /* QRcode Print */
  byte GsQr[] = { 0x1D,0x78,0x4C,0x04,0x54,0x45,0x53,0x54 };
  tp.write(GsQr, 8);
  tp.print("\r\r\r\r\r\r");  // Line Feed x 6
  /* Wait */
  delay(5000);  // 5sec
}

ESPr One

SwitchScience - ESPr One

Please confirm the position of jumper(JP5)

/*
 * Thermal Printer Shield for ESPr One(ESP-WROOM-02)
 * Model:AS-289R2
 * Sample Sourcecode
 * NADA ELECTRONICS, LTD.
 * http://www.nada.co.jp
 * By. Takehiro Yamaguchi
*/
 
void setup()
{
  Serial.begin(9600);
}
 
void loop()
{
  /* Text Print */
  Serial.print("Thermal Printer Shield\r");
  Serial.print("Text Printing.\r");
  Serial.print("\r\r");     // Line Feed x 2
  /* QRcode Print */
  byte GsQr[] = { 0x1D,0x78,0x4C,0x04,0x54,0x45,0x53,0x54 };
  Serial.write(GsQr, 8);
  Serial.print("\r\r\r\r\r\r");  // Line Feed x 6
  /* Wait */
  delay(5000);  // 5sec
}