Xinyuan-LilyGO / lilygo-micropython

Micropython for LILYGO boards
GNU General Public License v3.0
88 stars 28 forks source link

Examples for LCD on T-Display S3? #31

Open clydebarrow opened 1 year ago

clydebarrow commented 1 year ago

I've built the Micropython binary and flashed it to a T-Display S3. I can run simple programs, but have no idea where to start to drive the LCD. I see there is an lcd module available, but have no idea how to use it.

Are there any examples for this (or something equivalent?)

inlanger commented 1 year ago

Have the same issue here. The lcd module can't be used to display data, just for basic screen tests. You can find an example of "usage" here - https://github.com/Xinyuan-LilyGO/lilygo-micropython/blob/master/target/esp32s3/boards/LILYGO_T-DisplayS3/modules/inisetup.py

It looks like we need to use st7789, which should be included in the firmware, but it's not for some reason, or I can't find it.

jetbalsa commented 1 year ago

Digging into this more, russhughes/st7789_mpy does not get compiled it, it gets downloaded, but never included in the build process. only the LCD module is. There are examples of using it with a framebuffer, Check out the build_dir/esp32s3/lcd_binding_micropython/examples for some examples of using the LCD lib

lbuque commented 1 year ago

Here are some examples, it should all work.

lbuque commented 1 year ago

@jetbalsa Currently russhughes/st7789_mpy is only used on T-PicoC3.