From dc8a2737ec45c5bc45e39d0f8037c837a9f34cf3 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 8 Dec 2022 20:57:38 +0700 Subject: [PATCH] Update kuukar_sensors.py --- kuukar/kuukar_sensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kuukar/kuukar_sensors.py b/kuukar/kuukar_sensors.py index c826972..8abe4e4 100644 --- a/kuukar/kuukar_sensors.py +++ b/kuukar/kuukar_sensors.py @@ -17,7 +17,7 @@ class sensors: self.drv.set_pin_mode_analog_input(SONAR_2_ADC_PIN, 100, self.__sonar_callback) self.drv.set_pin_mode_analog_input(SONAR_3_ADC_PIN, 100, self.__sonar_callback) self.mcu.set_pin_mode_dht(DHT22_PIN, self.__dht22_callback) - self.drv.set_pin_mode_analog_input(LIGHT_ANALOG_PIN, 0, self.__light_sensor_callback) + self.drv.set_pin_mode_analog_input(LIGHT_SENSOR_PIN, 0, self.__light_sensor_callback) def sonar_get_distance(self, id: int) -> float: return self.__sonar_distances[id]