kuukar-rpi/app.py

11 lines
279 B
Python
Raw Permalink Normal View History

2022-12-08 13:07:29 +00:00
from kuukar.kuukar import kuukar
2022-12-13 14:49:17 +00:00
import time
2022-12-08 13:07:29 +00:00
car = kuukar()
2022-11-04 04:58:20 +00:00
while True:
2022-12-08 13:07:29 +00:00
temp = car.sensors.get_temperature()
humid = car.sensors.get_humidity_pct()
2022-12-08 14:42:36 +00:00
dist = car.sensors.sonar_get_distance()
print(f'temp: {temp}, humidity: {humid}, dist: {dist}')
2022-11-04 04:58:20 +00:00
time.sleep(1)