Xinyuan-LilyGO / lilygo-micropython

Micropython for LILYGO boards
GNU General Public License v3.0
88 stars 28 forks source link

Micropython SDCard for T-RGB Board #41

Open He-Peter-Huang opened 6 months ago

He-Peter-Huang commented 6 months ago

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