UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
from hardware import sdcard
setScreenColor(0x222222)
sdcard.SDCard(20000000)
with open('/sd/test.txt', 'w+') as fs:
fs.write('Hello World')
with open('/sd/test.txt', 'r') as fs:
print(fs.read())
sdcard.SDCard(20000000)
with open('/sd/test.txt', 'w+') as fs:
pass
fs.write('Hello World')
fs.seek(0)
fs.seek(0)
os.remove('/sd/filename')
os.rmdir('/sd/folder')
os.rename('/sd/old', '/sd/new')
fs.read()
fs.read(1024)
fs.readline()
fs.tell()
os.listdir('/sd/')
os.stat('/sd/')[0] == 0x8000
os.stat('/sd/')[0] == 0x4000
'' in os.listdir('/sd/')