UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import unit
setScreenColor(0x222222)
rfid_0 = unit.get(unit.RFID, unit.PORTA)
while True:
print(rfid_0.isCardOn())
if rfid_0.isCardOn():
print(rfid_0.readUid())
wait_ms(2)
print(rfid_0.isCardOn())
print(rfid_0.readBlockStr(1))
print(rfid_0.readUid())
rfid_0.writeBlock(1,'M5Stack')