However I keep getting the following error: no SD card
I have checked the conections and it is conencted perfectly.
This is the code that I am using to call sdcard.py
Code: Select all
import machine import os import sdcard sd = sdcard.SDCard(machine.SPI(1), machine.Pin(13)) os.mount(sd, '/sd') # check the content os.listdir('/sd') # try some standard file operations file = open('/sd/test.txt', 'w') file.write('Testing SD card write operations') file.close() file = open('/sd/test.txt', 'r') file.read() file.close()