SD card on M5 capsule - how to make it work ?
-
Hi,
I recently bought a M5 capsule, it's a super nice device. At one moment, i want to dump some files to the sd card. Unfortunately, no "sd" folder is recognized. I tried a micro sd card of 32Gb, 64Gb and 4GB. all are formatted in FAT32. But i don't see anything.
Anyone having a similar issue ?
Hope to solve this quick :)
L31BN1TZ
-
Have you imported and mounted the card?
-
while connecting through thonny, i can only see flash and system at the root of the device.
What do you mean by import and mount ?
-
I solved the problem, for those having the same problem, i fix it by init the sd card :
import os, sys, io
import M5
from M5 import *
from hardware import *
from hardware import sdcarddef setup():
M5.begin()
sdcard.SDCard(slot=3, width=1, sck=14, miso=39, mosi=12, cs=11, freq=1000000)
print(os.listdir('/sd/')) -
specific pins are available here : https://github.com/m5stack/M5Unified