Code: Select all
import machine sd = machine.SDCard(slot=2) print(sd.info())
However to get this working for slot=3 I need to specify mosi, miso and cs, even when using the default pins (13, 12, 15 as documented in the table of https://docs.micropython.org/en/latest/ ... DCard.html).
Without miso I get: OSError: (-264, 'ESP_ERR_INVALID_RESPONSE')
Without mosi I get: OSError: (110, 'ESP_ERR_TIMEOUT')
Strangely enough the sck pin needs not be specified.
It looks to me that machine.SDCard does not have implemented the (correct) defaults for slot=3 (except for sck).