UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import face
setScreenColor(0x222222)
faces_joystick = face.get(face.JOYSTICK)
while True:
print((str('reverse X value:') + str((faces_joystick.InvertX))))
print((str('reverse Y value:') + str((faces_joystick.InvertY))))
print((str('Status:') + str((faces_joystick.Press))))
faces_joystick.setLed(0, 0xff0000)
print((str('X value:') + str((faces_joystick.X))))
print((str('Y value:') + str((faces_joystick.Y))))
wait_ms(2)
faces_joystick.InvertX
faces_joystick.InvertY
faces_joystick.Press
faces_joystick.setLed(0, 0xff0000)
faces_joystick.setLed(0, 0xff0000)
faces_joystick.X
faces_joystick.Y