UIFlow Guide
Obtain Ultrasonic measurement data collected by ultrasonic
from m5stack import *
from m5ui import *
from uiflow import *
import unit
setScreenColor(0x222222)
Ultrasonic_0 = unit.get(unit.ULTRASONIC, unit.PORTA)
while True:
print(Ultrasonic_0.distance)
wait_ms(2)
print(Ultrasonic_0.distance)