Update kuukar_sensors.py
This commit is contained in:
parent
3b4064d529
commit
beb17ff93a
|
@ -11,7 +11,7 @@ class sensors:
|
||||||
def __init__(self, mcu: telemetrix_rpi_pico.TelemetrixRpiPico) -> None:
|
def __init__(self, mcu: telemetrix_rpi_pico.TelemetrixRpiPico) -> None:
|
||||||
self.mcu = mcu
|
self.mcu = mcu
|
||||||
self.mcu.set_pin_mode_analog_input(SONAR_ADC_PIN, 100, self.__sonar_callback)
|
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_dht(DHT22_PIN, self.__dht22_callback)
|
||||||
self.mcu.set_pin_mode_analog_input(LIGHT_SENSOR_PIN, 100, self.__light_sensor_callback)
|
self.mcu.set_pin_mode_analog_input(LIGHT_SENSOR_PIN, 100, self.__light_sensor_callback)
|
||||||
|
|
||||||
def sonar_get_distance(self) -> float:
|
def sonar_get_distance(self) -> float:
|
||||||
|
|
Loading…
Reference in New Issue