I have gotten sdcard.py from micropython/drivers/sdcard to work by changing the spi syntax to the current one and adding some more waiting/retry loops to work with my specific card.
I'm not sure how to mount the card to the filesystem though. I thought I could just look at the code for the pyboard but the moduos.c files seem to be organized quite differently. Simply doing
Code: Select all
card=SDCard(spi,cs)
sdfs=os.Vfsfat(card, "/sd")
I would appreciate any tips.
The goal would be to load the python code (main.py) from the flash on the esp-12 and read/write data files on the sd card.