/LCDTools

Image and text to LCD bitmap array tools

Primary LanguagePythonMIT LicenseMIT

LCDTools

LCDTools is a tool for text and image to lcd bitmap array .

LCDTools

Text to LCD

Default Input text and click transform you can preview result and get lcd bitmap array .

test 测试 テスト 시험

If you want to specify the size or font of the text you can do the following

font01 font02

Click the COPY button to copy the generated array to the shear board.

Image to LCD

You can also convert mainstream photos to corresponding LCD

image2lcd

image2lcd

Use the lcd array in android

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)

    }

Download

You can download the latest executable on the release page