Commit 67c45c14 by Lambok Sinaga

Update relay.py

parent ea50c4ad
...@@ -7,11 +7,11 @@ GPIO.setwarnings(False) ...@@ -7,11 +7,11 @@ GPIO.setwarnings(False)
def turn_on(pin): def turn_on(pin):
GPIO.setup(pin, GPIO.OUT) GPIO.setup(pin, GPIO.OUT)
GPIO.output(pin, GPIO.HIGH) GPIO.output(pin, GPIO.LOW)
def turn_off(pin): def turn_off(pin):
GPIO.setup(pin, GPIO.OUT) GPIO.setup(pin, GPIO.OUT)
GPIO.output(pin, GPIO.LOW) GPIO.output(pin, GPIO.HIGH)
if __name__ == "__main__": if __name__ == "__main__":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment