Firmware ESP32-WROVER-KIT 4.1 ready to use

Hi,

thank you for taking time with beginners

You were right, I didn’t understand what I was doing.
Now it’s working.

pi@raspberrypi:~/lv_micropython $ make -C ports/esp32 LV_CFLAGS="-DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=1" BOARD=GENERIC_SPIRAM deploy
make : on entre dans le répertoire « /home/pi/lv_micropython/ports/esp32 »
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Building with ESP IDF v4
find: ‘/home/pi/src/github.com/espressif/esp-idf/components/nghttp/private_include’: Aucun fichier ou dossier de ce type
find: ‘/home/pi/src/github.com/espressif/esp-idf/components/xtensa-debug-module/include’: Aucun fichier ou dossier de ce type
find: ‘/home/pi/src/github.com/espressif/esp-idf/components/smartconfig_ack/include’: Aucun fichier ou dossier de ce type
Writing build-GENERIC_SPIRAM/firmware.bin to the board
esptool.py v2.8
Serial port /dev/ttyUSB1
Connecting....
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, BLK3 partially reserved, Coding Scheme 3/4
Crystal is 40MHz
MAC: 84:0d:8e:18:8c:5c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 2287856 bytes to 1364524...
Wrote 2287856 bytes (1364524 compressed) at 0x00001000 in 32.6 seconds (effective 561.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
make : on quitte le répertoire « /home/pi/lv_micropython/ports/esp32 »

But I have a problem here :

>>> import lvgl as lv  # import LittlevGL
>>> from ili9341 import ili9341  
>>> MADCTL_MH = const(0x04)
>>> MADCTL_ML = const(0x10)
>>> MADCTL_MV = const(0x20)
>>> MADCTL_MX = const(0x40)
>>> MADCTL_MY = const(0x80)
>>> PORTRAIT = MADCTL_MX
>>> LANDSCAPE = MADCTL_MV
>>> PERIOD_DSP = 300  # display update period in ms
>>> PERIOD_BEEP = 500
>>> BEEP_FREQ1 = 1175
>>> BEEP_FREQ2 = 783
>>> lv.init()
>>> disp = ili9341(miso=25, mosi=23, clk=19, cs=22, dc=21, rst=18, power=-1, backlight=-1, rot=LANDSCAPE, width=320, height=240, hybrid=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ili9XXX.py", line 459, in __init__
RuntimeError: ili9341 micropython driver requires defining LV_COLOR_DEPTH=16
>>> 

i have make with a correct flag ? no ?

make -C ports/esp32 LV_CFLAGS="-DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=1" BOARD=GENERIC_SPIRAM deploy

Thank you