parent
f412c909ba
commit
c55a98e1fc
2
main.py
2
main.py
|
@ -44,7 +44,7 @@ def get_water_level():
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
GPIO.setwarnings(False)
|
GPIO.setwarnings(False)
|
||||||
GPIO_TRIGGER = 24
|
GPIO_TRIGGER = 24
|
||||||
GPIO_ECHO = 8
|
GPIO_ECHO = 25
|
||||||
GPIO.setup(GPIO_TRIGGER, GPIO.OUT)
|
GPIO.setup(GPIO_TRIGGER, GPIO.OUT)
|
||||||
GPIO.setup(GPIO_ECHO, GPIO.IN)
|
GPIO.setup(GPIO_ECHO, GPIO.IN)
|
||||||
GPIO.output(GPIO_TRIGGER, True)
|
GPIO.output(GPIO_TRIGGER, True)
|
||||||
|
|
Loading…
Reference in New Issue