UIFlow Guide
from m5stack import *
from m5stack_ui import *
from uiflow import *
import unit
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
earth_0 = unit.get(unit.EARTH, unit.PORTB)
while True:
print((str('Analog Value:') + str((earth_0.analogValue))))
print((str('Digital Value:') + str((earth_0.digitalValue))))
wait_ms(2)
earth_0.analogValue
earth_0.digitalValue