import sr04
from utime import sleep
sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
while 1:
dist=sr04.get_cm()
print(dist)
sleep(0.3)
import sr04
from utime import sleep
sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
while 1:
dist=sr04.get_cm()
print(dist)
sleep(0.3)