I assume they opted for a cheaper microsd connector which simply does not have such a switch (0.00 Cent saved!).
You can use your SD-Card like so:
Code: Select all
mport os
import pyb
import machine
# Forces the pin low, which tricks the board into thinking that an SD Card is connected
# Normaly there is a hardware switch for that, but on the crow board it seems to be left out
# If ommited os.mount() won't mount the sd card (even if present) with OSError: 16 (EBUSY)
machine.Pin('A8', mode=machine.Pin.OUT, pull=None)
# Now mount the sd card
sd = pyb.SDCard()
os.mount(sd, '/sd')
# Now you can work with the SDCard as usual...
os.listdir('/sd')
Unfortunately I've not found the piece of code where that happens to see if there is some kind of force-Option to ignore if the sd card is resent and try anyway!
As an Alternative you can access the SD Card by hand with an SDCard Module... there are some out there.
You can read where the SDCard is connected in the Pyboard Shematics.