UIFlow Guide
读取数字引脚和模拟引脚的数值并显示在屏幕上
from m5stack import *
from m5stack_ui import *
from uiflow import *
from easyIO import *
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
label0 = M5Label('label0', x=130, y=60, color=0x000, font=FONT_MONT_14, parent=None)
label1 = M5Label('label1', x=130, y=102, color=0x000, font=FONT_MONT_14, parent=None)
label0.set_text(str(analogRead(39)))
label1.set_text(str(digitalRead(0)))
str(analogRead(39))
str(analogRead(39))
str(digitalRead(0))
str(map_value(0, 0, 1023, 0, 4))
analogWrite(26, 0)
digitalWrite(26, 0)
toggleIO(26)