UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import unit
setScreenColor(0x222222)
reflective_ir_0 = unit.get(unit.REFLECTIVE_IR, unit.PORTB)
while True:
print((str('analog:') + str((reflective_ir_0.get_analog_output()))))
print((str('digital:') + str((reflective_ir_0.get_digital_output()))))
wait_ms(2)
print(reflective_ir_0.get_analog_output())
print(reflective_ir_0.get_digital_output())