UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import unit
setScreenColor(0x222222)
tof4m_0 = unit.get(unit.TOF4M, unit.PORTA)
tof4m_0.set_distance_mode('SHORT')
tof4m_0.set_measurement_timing_budget(200)
while True:
print(tof4m_0.get_single_distance_value)
wait_ms(2)
print(tof4m_0.get_single_distance_value)
tof4m_0.set_distance_mode('SHORT')
tof4m_0.set_measurement_timing_budget(200)