lilygo-micropython icon indicating copy to clipboard operation
lilygo-micropython copied to clipboard

Micropython SDCard for T-RGB Board

Open He-Peter-Huang opened this issue 1 year ago • 0 comments

I'm using the LilyGo T-RGB, I'm having trouble setting up the SDCard, the CS pin is connected to P07 on the XL9535. What should I put in for the SDCard cs parameter?

>>> import machine
>>> import os
>>> sd = machine.SDCard()
>>> sd.info()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 116] ETIMEDOUT: ESP_ERR_TIMEOUT
>>> os.mount(sd, "/sd")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: 16

mosi = GPIO 40 miso = GPIO 38 sck = GPIO 39 cs = ?

image image image

He-Peter-Huang avatar Dec 16 '23 17:12 He-Peter-Huang