Closed dcmcshan closed 3 weeks ago
it's st7735 not ST7735
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'
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.
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