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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login