What did I get wrong....
got test(ili9341.py-shared-SPI)... changed ili9341.py settings for LOLIN D2 Pro
Code: Select all
def __init__(self,
miso=19, mosi=23, clk=18, cs=14, dc=27, rst=33, power=-1, backlight=32, backlight_on=1, power_on=1,
spihost=esp.HSPI_HOST, mhz=40, factor=4, hybrid=True, width=320, height=240,
colormode=COLOR_MODE_BGR, rot=LANDSCAPE, invert=False, double_buffer=True
):
mount SD Card
Code: Select all
uos.mount(SDCard(slot=2, cs=4), '/sd')
it mounts and saves a file... good
then initialized LVGL and got...
Code: Select all
>>> import tft
E (61690) spi_master: spi_bus_add_device(373): host not initialized
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tft.py", line 16, in <module>
File "ili9341.py", line 121, in __init__
File "ili9341.py", line 338, in init
File "ili9341.py", line 218, in disp_spi_init
RuntimeError: Failed adding SPI device
>>>