I'm using the Adafruit Feather Huzzah ESP8266 with Adalogger Feather Wing holding the SD card. Firmware is CircuitPython 0.8.2.
I had to change line 122 of sdcard.py file because there is no time.sleep_ms() function available with in the current CircuitPython firmware. I used time.sleep() instead. I also converted sdcard.py to sdcard.mpy byte code using mpy-cross, placing the sdcard.mpy file in the ESP8266 '/' filesystem (not the sdcard filesystem).
Line 122 of sdcard.py, < before, > after change
Code: Select all
< time.sleep_ms(50)
---
> time.sleep(.05)
Code: Select all
# SD card filesystem
import machine, sdcard, os
sd = sdcard.SDCard(machine.SPI(1), machine.Pin(15))
os.umount()
vfs = os.VfsFat(sd, "")