Update app.py
This commit is contained in:
parent
880a16a462
commit
60027f3caa
6
app.py
6
app.py
|
@ -24,8 +24,6 @@ car = kuukar()
|
|||
while True:
|
||||
temp = car.sensors.get_temperature()
|
||||
humid = car.sensors.get_humidity_pct()
|
||||
dist1 = car.sensors.sonar_get_distance(0)
|
||||
dist2 = car.sensors.sonar_get_distance(1)
|
||||
dist3 = car.sensors.sonar_get_distance(2)
|
||||
print(f'temp: {temp}, humidity: {humid}, dist1: {dist1}, dist2: {dist2}, dist3: {dist3}')
|
||||
dist = car.sensors.sonar_get_distance()
|
||||
print(f'temp: {temp}, humidity: {humid}, dist: {dist}')
|
||||
time.sleep(1)
|
||||
|
|
Loading…
Reference in New Issue