UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import face
setScreenColor(0x222222)
faces_finger = face.get(face.FINGER)
faces_finger.addUser(1, 1)
while True:
print((str('access: ') + str((access))))
print((str('id: ') + str((user_id))))
print((str('state: ') + str((faces_finger.state))))
faces_finger.removeUser(1)
wait_ms(2)
faces_finger.addUser(1, 1)
def faces_finger_unknownCb():
# global params
pass
faces_finger.getUnknownCb(faces_finger_unknownCb)
access
user_id
faces_finger.state
def faces_finger_cb(user_id, access):
# global params
pass
faces_finger.readFingerCb(callback=faces_finger_cb)
faces_finger.removeAllUser()
faces_finger.removeUser(1)