UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import face
setScreenColor(0x222222)
faces_encode = face.get(face.ENCODE)
faces_encode.clearValue()
faces_encode.setLed(0, 0xff0000)
while True:
print((str('direction:') + str((faces_encode.getDir()))))
print((str('press status:') + str((faces_encode.getPress()))))
print((str('value:') + str((faces_encode.getValue()))))
wait_ms(2)
faces_encode.clearValue()
faces_encode.getDir()
faces_encode.getPress()
faces_encode.getValue()
faces_encode.setLed(0, 0xff0000)
faces_encode.setLed(0, 0xff0000)
faces_encode.setLed(0, 0x000000)