Hi all,
I’m on quite a steep learning curve here during country lockdown. In the past I was only using arduino IDE, but now I learned ESP32, lvgl, python, github, and now micropython. So far so good.
But now I run in something stupid. After successfully building and downloading lv_micropython I can write code and design nice screens, but ONLY in portrait. I found a post about changing to landscape, but this doesn’t seem to work. When I try to use landscape mode I always get this:
AttributeError: type object ‘ili9341’ has no attribute ‘LANDSCAPE’
I tried it with ili9XXX, ili9341, directly MADCTL_MV, but so far no luck.
Can anyone point me in the right direction?
import lvgl as lv
import lvesp32
from ili9XXX import ili9341
disp = ili9341(
mhz=40,
factor=4,
hybrid=True,
rot=ili9341.LANDSCAPE,
width=320,
height=240
)