UIFlow Guide
Display touch coordinates and touch status on the screen.
from m5stack import *
from m5stack_ui import *
from uiflow import *
from m5stack import touch
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
label0 = M5Label('label0', x=123, y=59, color=0x000, font=FONT_MONT_14, parent=None)
label1 = M5Label('label1', x=121, y=93, color=0x000, font=FONT_MONT_14, parent=None)
while True:
label0.set_text(str(touch.read()))
label1.set_text(str(touch.status()))
wait_ms(2)
str(touch.read())
str(touch.read()[0])
str(touch.read()[1])
str(touch.status())