From 60027f3caaec34a00f5fe81290550670ebf85052 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 8 Dec 2022 21:42:36 +0700 Subject: [PATCH] Update app.py --- app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 12ea93c..a9f1aef 100644 --- a/app.py +++ b/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)