Replies: 7 comments 4 replies
-
|
Some suggestions for your display = myili9341.ILI9341(
data_bus=display_bus,
display_width=240,
display_height=320,
reset_pin=None,
backlight_pin=LCD_BL,
color_space=lv.COLOR_FORMAT.RGB565,
color_byte_order=myili9341.BYTE_ORDER_BGR, # <--- or _RGB to correct color issues
rgb565_byte_swap=True
)
display.set_power(True)
display.init(1) # <--- or (2) if (1) doesn't helpThe |
Beta Was this translation helpful? Give feedback.
-
|
I finally managed to fix things. The problem was that the examples for initialization were not too helpful and the Projects made with this binding certainly does not work (any more) as it is. The main problem was a missing event loop in which lv_task_handler is called. Without this, the flush_cb is never called and nothing appears on the screen. |
Beta Was this translation helpful? Give feedback.
-
|
Glad you got it figured out. Be glad you have an ESP32-S3 - many CYDs (like the ones I have) only have an ESP32-D0WD-V3 with no PSRAM at all. This will be interesting to see if I am actually able to fit my whole app on it... |
Beta Was this translation helpful? Give feedback.
-
|
Well, mine has 8 MB of PSRAM and 16 GB of flash! Then it has a microphone, a loadspeaker with driver and a few more gadgets. It should be nice to play AI on it as the ESP32S3 has dedicated vector instructions. |
Beta Was this translation helpful? Give feedback.
-
|
I also modified in display_driver_framework |
Beta Was this translation helpful? Give feedback.
-
|
Many thanks Bob, |
Beta Was this translation helpful? Give feedback.
-
|
Have you run Let me know when you get the SD card working. That is something I haven 't tried yet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I bought a LCD Wiki ES3N28P board with a 320x240 LCD display controlled by an ILI9431 chip. I am trying to get a hello world UI running on this board.
I tried with this initialization file
basic.py
In display_driver_framework is saw
def init(self, type=None):tries to import _ili9431_init.py which does not exist. There is however _ili9431_init_type1.py and _ili9431_init_type2.py, which are imported if type is 1 or 2 (where does type come from?)In my case backlight is active high but
self._backlight_pin.value(not backlight_on_state)switches the backlight off.I modified this, removing "not" to switch backlight on.
The program runs but I only see a small vertical line.
Can I use the driver to try and draw a line or a colored rectangle?
I wrote a small pin definition file, where I copied the pin allocations from the manual and modified the pin definitions correspondingly (hw_es3n28p,py)
I do not see _flush_cb being called.
Can you give me any hints how I can debug this problem? Can I draw some simple objects (e.g. filled rectangle) to test the driver?
I tried the ili9341 driver with standard micropython using my pin definition file and there things work (colors are not yet ok, but otherwise things work fine). So, I am confident that the pin definitions are correct.
Beta Was this translation helpful? Give feedback.
All reactions