UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import face
setScreenColor(0x222222)
faces_boy = face.get(face.GAMEBOY)
while True:
if faces_boy.getStatus(0):
print('up')
if faces_boy.getStatus(1):
print('down')
if faces_boy.getStatus(2):
print('left')
if faces_boy.getStatus(3):
print('right')
if faces_boy.getStatus(4):
print('Button A')
if faces_boy.getStatus(5):
print('Button B')
if faces_boy.getStatus(6):
print('Button Select')
if faces_boy.getStatus(7):
print('Button Start')
wait_ms(2)
faces_boy.getPressed(key)
faces_boy.getReleased(key)
faces_boy.getStatus(key)