Code: Select all
import os, pyb, sys
os.mount(pyb.MMCard(), '/mmc')
sys.path.append('/mmc')
pyb.usb_mode('VCP+MSC', msc=(pyb.MMCard(),))
Code: Select all
os.chdir('/mmc')
os.listdir()
Hold USB button and press RESET briefly
Rename Volume.
See disk stats (osx):
Code: Select all
cd /Volumes/PYBMMC
df -h /Volumes/PYBMMC
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk2s1 3.6Gi 8.0Ki 3.6Gi 1% 0 0 100% /Volumes/PYBMMC
Code: Select all
ls /pyboard
flash/ mmc/