From 18892407d493be4b06fb0c3c6eddc6e6ed79a4ff Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 8 Dec 2022 22:08:05 +0700 Subject: [PATCH] Update kuukar_sensors.py --- kuukar/kuukar_sensors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kuukar/kuukar_sensors.py b/kuukar/kuukar_sensors.py index fa3d9b7..6a53111 100644 --- a/kuukar/kuukar_sensors.py +++ b/kuukar/kuukar_sensors.py @@ -11,8 +11,8 @@ class sensors: def __init__(self, mcu: telemetrix_rpi_pico.TelemetrixRpiPico) -> None: self.mcu = mcu self.mcu.set_pin_mode_analog_input(SONAR_ADC_PIN, 100, self.__sonar_callback) - self.mcu.set_pin_mode_dht(DHT22_PIN, self.__dht22_callback) - self.mcu.set_pin_mode_analog_input(LIGHT_SENSOR_PIN, 0, self.__light_sensor_callback) + #self.mcu.set_pin_mode_dht(DHT22_PIN, self.__dht22_callback) + self.mcu.set_pin_mode_analog_input(LIGHT_SENSOR_PIN, 100, self.__light_sensor_callback) def sonar_get_distance(self) -> float: return self.__sonar_distances