Update app.py

This commit is contained in:
Siwat Sirichai 2022-12-08 21:42:36 +07:00
parent 880a16a462
commit 60027f3caa
1 changed files with 2 additions and 4 deletions

6
app.py
View File

@ -24,8 +24,6 @@ car = kuukar()
while True: while True:
temp = car.sensors.get_temperature() temp = car.sensors.get_temperature()
humid = car.sensors.get_humidity_pct() humid = car.sensors.get_humidity_pct()
dist1 = car.sensors.sonar_get_distance(0) dist = car.sensors.sonar_get_distance()
dist2 = car.sensors.sonar_get_distance(1) print(f'temp: {temp}, humidity: {humid}, dist: {dist}')
dist3 = car.sensors.sonar_get_distance(2)
print(f'temp: {temp}, humidity: {humid}, dist1: {dist1}, dist2: {dist2}, dist3: {dist3}')
time.sleep(1) time.sleep(1)