UIFlow Guide
获取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)