Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mySerial.write(0xFE);
mySerial.write(0x58); // clear screen
mySerial.write(0xFE);
mySerial.write(0x6E); // init large digit
mySerial.write(0xFE);
mySerial.write(0x23); // place large digit
mySerial.write(0x10);
mySerial.write(0x09);
delay(1000);
mySerial.write(0xFE);
mySerial.write(0x48); // send cursor home
mySerial.write(0xFE);
mySerial.write(0x4E); // set custom char
mySerial.write((uint8_t)0x0);
mySerial.write(0x1F);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0xFE);
mySerial.write(0x4E);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x1f);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0xFE);
mySerial.write(0x4E);
mySerial.write(0x02);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x1f);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0xFE);
mySerial.write(0x4E);
mySerial.write(0x03);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x1f);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0xFE);
mySerial.write(0x4E);
mySerial.write(0x04);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x1f);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0xFE);
mySerial.write(0x4E);
mySerial.write(0x05);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x1f);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0xFE);
mySerial.write(0x4E);
mySerial.write(0x06);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x1f);
mySerial.write(0x01);
mySerial.write(0xFE);
mySerial.write(0x4E);
mySerial.write(0x07);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x01);
mySerial.write(0x1f);
//display all the custom chars
for(int i = 0; i<8; i++)
mySerial.write((uint8_t)i);
delay(1000);
mySerial.write(0xFE);
mySerial.write(0x23); // place large digit
mySerial.write(0x0C);
mySerial.write(0x09);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.