From 8683898c3f4b2dbc830ec19f2dff273576ea6d7e Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 8 Dec 2022 20:01:28 +0700 Subject: [PATCH] Update kuukar_sensors.py --- kuukar/kuukar_sensors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kuukar/kuukar_sensors.py b/kuukar/kuukar_sensors.py index f003c2d..b2bd5f3 100644 --- a/kuukar/kuukar_sensors.py +++ b/kuukar/kuukar_sensors.py @@ -14,9 +14,9 @@ class sensors: def __init__(self, mcu: telemetrix_rpi_pico.TelemetrixRpiPico) -> None: self.mcu = mcu - self.mcu.set_pin_mode_analog_input(SONAR_1_ADC_PIN, 10, self.__sonar_callback) - self.mcu.set_pin_mode_analog_input(SONAR_2_ADC_PIN, 10, self.__sonar_callback) - self.mcu.set_pin_mode_analog_input(SONAR_3_ADC_PIN, 10, self.__sonar_callback) + self.mcu.set_pin_mode_analog_input(SONAR_1_ADC_PIN, 100, self.__sonar_callback) + self.mcu.set_pin_mode_analog_input(SONAR_2_ADC_PIN, 100, self.__sonar_callback) + self.mcu.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.mcu.set_pin_mode_analog_input(LIGHT_ANALOG_PIN, 0, self.__light_sensor_callback)