Replies: 6 comments 11 replies
-
|
OK put on the brakes for a second.. the MCU you have is an ESP32-S3 N16R8. That means you have 8MB of PSRAM and 16mb of flash. Wat is not know is if the flash is quad spi or octal spi and we need to know that... The display IS that is being used is an ILI9341V and it states that the IC is using a 4 lane connection to the MCU. That means the display is using quad SPI. I am not sure why you are trying to use a driver that has nothing to do with this library and I am not going to be able to assist you with that driver because I am not the person that wrote it. There is a driver for your display that is included with this library and I recommend that you use that driver. If you have an issue with the driver that is included with this library I will be able to help out with any issues you might be having... The file you have provided that contains the code you are running doesn't include a lot of code that is being imported in other files. I am not going to be able to assist unless I see all of it. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Kevin, In order to figure out what was going wrong, I extracted your ili9341 driver and display_driver_framework, renamed them and uploaded the modified versions to the ESP32 (this is probably the "additional imports" you are referring to) . Now I could put print statements into the driver to try and figure out what went wrong. I drafted my hello world program (I called basic) after main in temp_humidity_micropython_lvgl, the project you linked into your README. This crashed, because the display init now expects an init type (1 or 2). Is is better to default the type to 1 instead of None, to avoid the crash? or to supply _ili9431_init.py which is expected when type == None? There is no mention in the README about this.The main.py program from the example project would also crash. I guess, the type parameter was added later. Let me take this opportunity to thank you for the tremendous job you are doing. Thank you also for quick answers in the discussions. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you so much. Even before your code I already had the thing working and my code looks very much like the one you sent me. |
Beta Was this translation helpful? Give feedback.
-
|
I send you the script I use to compile my esp32 version of lvgl and the log. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry Kevin, I guess I explained myself badly or you somehow misunderstood me. I told you that I had a problem with the build command when putting deploy at the end (we discussed this and you saw the output of the command). I saw however, that the build was successful and that the problem came from the call to esptool exclusively. Therefore I copied the flash command you print at the end of the build, into a new shell script and I used that script to do the flashing, and that worked perfectly! I got my lvgl_micropython uploaded and I was able to work with it. I told you about the problems I had when writing my first lvgl hello world program for the esp32, but these problems are also solved! |
Beta Was this translation helpful? Give feedback.
-
|
I can tell you, where you are "mucking up": but you are calling esptool directly. In my case, I also have esptool installed as a command as you probably also do. The command you give in the compile script, when adding deploy is this: To try this, I removed the first two entries in the argument list (args). In line 1699 of builder/esp32.py (or close to it, as I had to modify the script, such that it can find my esp-idf python virtual environment) you call: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I bought a LCD Wiki ES3N28P board with a 320x240 pixel display controlled by an ili9341 controller.
I created a pin definition file (hw_es3n28p.py) using the es3n28p manual and I tried everything with a standard micropython and this ili9431 driver
Things seem to work apart from a color problem.
Now I tried a simple program in lvgl_micropython drafted after the example project. Compilation for the esp32s3 for the ili9341 and the ft6336 touch pannel looked ok. I had some problems during compilation because the esp-idf virtual environment was located in ~/.virtualenvs by esp-idf install.sh (esp32.py did not find it) and flashing did not work because the first arguments in the argument list were
-m esptool(esptool should be called via python and not directly).I somehow managed to fix these and I managed to flash lvgl_micropython to the board.
Then I wrote
basic.py
to try it, but I had no luck.
My backlight is active high and did not come on (is
self._backlight_pin.value(not backlight_on_state)correct?). I removed 'not' and the backlight came on.First I called display.init(), which crashed because it cannot find _ili9431_init.py. Setting a type helped.
I do not see _flush_cb being called.
On the display I see a single small black vertical line. Changing the screen background color has no effect. How can I debug these problems?
I copied ili9341.py to myili9341.py and display_driver_framework.py to mydisplay_driver_framework.py and I uploaded these to be able to easily make changes. Of course I modified myili9341.py to call mydisplay_driver_framework.py.
Any hints on how to debug this thing? Is it possible to draw simple objects (e.g. a color filled rectangle) with the driver without passing through lvgl? Any other hint?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions