Browse Source

Change movement to correct pin

master
Elis Axelsson 5 years ago
parent
commit
9c3482d77a
  1. 2
      code/main.py

2
code/main.py

@ -11,7 +11,7 @@ def getDistance():
def getMovement():
sensor = machine.Pin(pins.D2, mode=machine.Pin.IN, pull=None)
sensor = machine.Pin(pins.D4, mode=machine.Pin.IN, pull=None)
return sensor.value()

Loading…
Cancel
Save