the first problem is this message : "AttributeError: 'module' object has no attribute 'SDCard'", i am using the sdcard.py from https://github.com/micropython/micropyt ... /sdcard.py, but i don't know how to solve this problem. And the second one is how can i put the SD card to save the variables that i said before?
The code i am using for test the SD card
Code: Select all
import machine, sdcard, os
from machine import Pin, SPI
spisd = SPI(-1, sck=Pin(14), mosi=Pin(15), miso=Pin(2))
sd = sdcard.SDCard(spisd, machine.Pin(13))
os.mount(sd, '/sd')
os.listdir('/sd')
os.umount('/sd')