updating initial value of ouput pin 4 to low

master
Nathan 3 years ago
parent 67410efd8b
commit 613c1ab54c

@ -8,7 +8,7 @@ class Barrier:
barrier_position = 0
ad0 = Pin("D0", Pin.IN, Pin.PULL_UP) #door
ad1 = Pin("D1", Pin.IN, Pin.PULL_UP) #motor
ad4 = Pin("D4", Pin.OUT)
ad4 = Pin("D4", Pin.OUT, value=0)
door = ad0.value()
motor = ad1.value()
update = False

@ -12,10 +12,10 @@ import gen
import com
import struct
ad0 = Pin("D0", Pin.IN, Pin.PULL_UP)
ad1 = Pin("D1", Pin.IN, Pin.PULL_UP)
ad2 = Pin("D2", Pin.IN, Pin.PULL_UP)
ad4 = Pin("D4", Pin.OUT)
#ad0 = Pin("D0", Pin.IN, Pin.PULL_UP)
#ad1 = Pin("D1", Pin.IN, Pin.PULL_UP)
#ad2 = Pin("D2", Pin.IN, Pin.PULL_UP)
ad4 = Pin("D4", Pin.OUT,value=0)
def status_cb(status):
print("m stat: {:02x}".format(status))

Loading…
Cancel
Save