Browse Source

Add method to reset relay

master
Elis Axelsson 5 years ago
parent
commit
cd2b2d7835
  1. 8
      code/main.py

8
code/main.py

@ -28,6 +28,14 @@ def movement():
time.sleep(0.5)
def resetRelay():
relayUp = machine.Pin(pins.D2, mode=machine.Pin.OUT)
relayDown = machine.Pin(pins.D3, mode=machine.Pin.OUT)
relayUp.value(1)
relayDown.value(1)
def toggleRaiseUp():
relayUp = machine.Pin(pins.D2, mode=machine.Pin.OUT)

Loading…
Cancel
Save