UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import face
setScreenColor(0x222222)
faces_calc = face.get(face.CALC)
def buttonA_wasPressed():
# global params
faces_calc.clearStr()
pass
btnA.wasPressed(buttonA_wasPressed)
def buttonB_wasPressed():
# global params
faces_calc.deleteStrLast()
pass
btnB.wasPressed(buttonB_wasPressed)
while True:
if faces_calc.isNewKeyPress():
print((str('Button Value:') + str((faces_calc.readKey()))))
print((str('Input string:') + str((faces_calc.readStr()))))
wait_ms(2)
faces_calc.isNewKeyPress()
faces_calc.readKey()
faces_calc.readStr()
faces_calc.deleteStrLast()
faces_calc.clearStr()