parent
39b3b86a60
commit
78036962d0
2
main.py
2
main.py
|
@ -42,7 +42,7 @@ def relay_controller(pin: int, status: str):
|
||||||
#ultrasonic
|
#ultrasonic
|
||||||
|
|
||||||
def get_water_level():
|
def get_water_level():
|
||||||
GPIO.setmode(GPIO.BOARD)
|
GPIO.setmode(GPIO.BMC)
|
||||||
GPIO.setwarnings(False)
|
GPIO.setwarnings(False)
|
||||||
GPIO_TRIGGER = 18
|
GPIO_TRIGGER = 18
|
||||||
GPIO_ECHO = 24
|
GPIO_ECHO = 24
|
||||||
|
|
Loading…
Reference in New Issue