UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
from base.QRCode import QRCode
scan_data = None
qr = QRCode()
while True:
if btnA.isPressed():
qr.trigger(0)
else:
qr.trigger(1)
if qr.status():
scan_data = qr.read()
if scan_data != None:
print(scan_data)
wait_ms(2)
from base.QRCode import QRCode
qr = QRCode()
qr.trigger(control)
qr.status()
qr.read()