LCDTools is a tool for text and image to lcd bitmap array .
Default Input text and click transform you can preview result and get lcd bitmap array .
If you want to specify the size or font of the text you can do the following
Click the COPY
button to copy the generated array to the shear board.
You can also convert mainstream photos to corresponding LCD
You can use them in the Android code, refer to the following links SerialUartDemo
fun showCustomMessage() {
val bytes = arrayOf(
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x00,
0x00, 0xc0, 0x00, 0x00, 0x06, 0x00, 0x00, 0xc0,
0x00, 0x00, 0x06, 0x00, 0x03, 0xf8, 0x3c, 0x1f,
0x1f, 0xc0, 0x00, 0xc0, 0x66, 0x31, 0x06, 0x00,
0x00, 0xc0, 0xc2, 0x20, 0x06, 0x00, 0x00, 0xc0,
0xc3, 0x30, 0x06, 0x00, 0x00, 0xc0, 0xff, 0x1e,
0x06, 0x00, 0x00, 0xc0, 0x80, 0x03, 0x06, 0x00,
0x00, 0xc0, 0xc0, 0x01, 0x06, 0x00, 0x00, 0x40,
0x62, 0x23, 0x02, 0x00, 0x00, 0x78, 0x3e, 0x3e,
0x03, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
).toByteArray()
val loaderCommands = getCommandBytes(
CarLED.COMMAND_BYTE_SHOW,
0xC1.toByte(),
CarLED.COLOR_WHITE,
*bytes
)
writeCommands(loaderCommands)
}
You can download the latest executable on the release page