ESP32 BOX Lite - Writing to the Screen #10435
-
Good day MicroPython'ers. Just starting out with an ESP 32 Box lite and loaded MP with it with some help from this forum a few days ago. I've got a repl and can connect to the internet which is great, but trying to print to the screen now. I thought the screen was an ili9341 -- I don't really know -- as I have not found that information online explicitly, but grepping the repo https://github.com/espressif/esp-box.git for clues I found something:
I tried using this excellent driver: https://github.com/rdagger/micropython-ili9341 which works great for my other esp32s connected to ili9341's. I'm creating the spi object like this:
as that is what the back of the device says the values are. And then a display object:
based on these values: GPIO_LCD_CS = (GPIO_NUM_5), from here: https://github.com/espressif/esp-box/blob/master/components/bsp/src/boards/esp32_s3_box_lite.c I've tried lots of different combinations for the spi, and google/chatgpt'ed based on some educated guess but no real luck just yet. Not sure how popular this board is, but anyone know if I am way off or if I completely missed something? EDIT:(just saw this now https://github.com/russhughes/ili9342c_mpy, seems like a full firmware and not specific to the S3 Box Lite, but might be worth checking out as it seems to be for "ILI9342C" vs "ILI9341") |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
I don't have one of these yet, so I haven't tested any of this. According to the Hardware Overview the S3 Box Lite has an ESP32-S3 with a st7789 display. You could try the (untested) ESP32_BOX_LITE firmware from https://github.com/russhughes/st7789_mpy. Configuration Example (untested) tft_config.py. Display I/O Pins: 4 DC, 5 CS, 6 MOSI, 7 CLK, 48 RESET and 45 BACKLIGHT References: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Oh great to hear you have the ESP32 S3 Box. Sorry for my ignorance here but what firmware are you using for it? For the Box Lite, I tried the tft_confg.py and used the less functional driver. I got some errors - it seems like it does not support "custom_init=custom_init" in the ST7789 class and the variable 'BGR' went missing. But I think that's what you mean but it was less functional. I tried to remove some of the init params , did not quite get it to work yet, but trying ... |
Beta Was this translation helpful? Give feedback.
-
Yes, it is compiled 'C' code. |
Beta Was this translation helpful? Give feedback.
I don't have one of these yet, so I haven't tested any of this. According to the Hardware Overview the S3 Box Lite has an ESP32-S3 with a st7789 display. You could try the (untested) ESP32_BOX_LITE firmware from https://github.com/russhughes/st7789_mpy. Configuration Example (untested) tft_config.py.
Display I/O Pins: 4 DC, 5 CS, 6 MOSI, 7 CLK, 48 RESET and 45 BACKLIGHT
References:
Hardware Overview
Schematic