
UiFlow チュートリアル
Prints fingerprint ID, access level, and recognition status to the serial console.
from m5stack import *
from m5ui import *
from uiflow import *
import hat
setScreenColor(0x111111)
hat_Finger_0 = hat.get(hat.FINGER)
hat_Finger_0.addUser(1, 1)
while True:
print(hat_Finger_0.state)
print(user_id)
print(access)
wait_ms(2) hat_Finger_0.addUser(1, 1) hat_Finger_0.readFingerCb(callback=hat_Finger_0_cb) access user_id hat_Finger_0.state hat_Finger_0.state hat_Finger_0.removeAllUser() hat_Finger_0.removeUser(1)