diff --git a/code.py b/code.py index 87fabee..99c653d 100644 --- a/code.py +++ b/code.py @@ -24,5 +24,9 @@ while True: else: if previousValue != clkPin.value: if clkPin.value == False: - print("1x"+str(dtPin.value)) + if dtPin.value == False: + print("1x1") + elif dtPin.value == True: + print("1x0") + time.sleep(0.1) previousValue = clkPin.value