Archived
1
0

Adding relay output test program.

This commit is contained in:
Shaun Setlock
2021-10-17 20:55:25 -04:00
parent 879a21445d
commit 9f3da5e663
4 changed files with 47 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ if __name__ == "__main__":
i = 0
try:
while True:
if not GPIO.input(PB_PIN):
if GPIO.input(PB_PIN):
i += 1
print(f"Hi Gabby! Did you push the button? i = {i}")
time.sleep(0.1)