@favnec5
My workaround for this (known) problem:
- during boot mount the sdcard and load files to ram
- then unmout the sdcard
- initialize the display
something like:
import uos
from machine import Pin, SDCard
sdcard = SDCard(slot=2, sck=Pin(18), miso=Pin(38), mosi=Pin(23), cs=Pin(4), freq=40000000)
uos.mount(sdcard, '/sd')
...
uos.umount('/sd')
sdcard.deinit()
before initializing the display:
from ili9XXX import ili9341
lcd = ili9341(spihost=1, mosi=23, miso=38, clk=18, dc=15, cs=5, invert=True, rot=0xC0, width=320, height=240, rst=-1, power=-1, backlight=-1)
I'm loading weathericons to use with openweathermap that way.