lvgl-micropython / lvgl_micropython

LVGL module for MicroPython
MIT License
87 stars 29 forks source link

no module named 'ST7735' #149

Closed dcmcshan closed 3 weeks ago

dcmcshan commented 1 month ago

I looked in README, didn't see any mention of this changing?

% python3 make.py esp32 clean BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT --flash-size=16 DISPLAY=ST7735 --usb-otg --dual-core-threads

LVGL MicroPython 1.23.0 on 2024-10-12; Generic ESP32S3 module with Octal-SPIRAM with ESP32S3
Type "help()" for more information.
>>> import ST7735
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'ST7735'
kdschlosser commented 1 month ago

it's st7735 not ST7735

dcmcshan commented 1 month ago

Strange. But this also doesn't work. Did the API change entirely? This has worked for many months...

Traceback (most recent call last):
  File "<stdin>", line 123, in <module>
  File "<stdin>", line 69, in __init__
AttributeError: 'module' object has no attribute 'ST7735R_Red'
kdschlosser commented 1 month ago

HAHAHA... I changed the API so you were leading all kinds of code that wasn't going to get used.

There is no ST7735R_Red class anymore.

import st7735

display = st7735.ST7735(
    ...
)

display.init(st7735.TYPE_R_RED)

That will get ya going.