UIFlow Guide
打印按键的数值
from m5stack import *
from m5ui import *
from uiflow import *
import hat
setScreenColor(0x111111)
hat_cardkb_1 = hat.get(hat.CARDKB)
print(hat_cardkb_1.keyData)
print(hat_cardkb_1.keyString)
print(hat_cardkb_1.isNewKeyPress())
hat_cardkb_0.keyData
hat_cardkb_0.isNewKeyPress()
hat_cardkb_0.keyString