MicroPython_ESP32_psRAM_LoBo
MicroPython_ESP32_psRAM_LoBo copied to clipboard
SD and tft via SPI -- tft stops working after a while
I use the tft
tft = display.TFT() tft.init(type=0 ,mosi=23, miso=19, clk=18, cs=5 ,dc=21 ,spihost=1,rot=3,splash = False)
and the uSD on the same SPI (on an odroid go) as an UART Logger which also displays the Data on the tft
uos.sdconfig(uos.SDMODE_SPI, 18, 23, 19, 22) os.mountsd()
Which works excellent in the beginning, but after a while it always ends in:
E (329295) spi_master: spi_bus_free(199): not all CSses freed E (329296) spi_master: spi_bus_initialize(89): host already in use E (329298) [SPI_UTILS]: Select: Error ReInitializing spi bus 1
Where the SD card keeps working but the Display doesnt