Archived
1
0

Adding relay output test program.

This commit is contained in:
Shaun Setlock
2021-10-17 20:55:25 -04:00
parent 54ec983e05
commit 30251525a5
2 changed files with 31 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)