Before putting all into callbacks

This commit is contained in:
2017-10-31 16:22:41 +01:00
parent 896b62de57
commit f9f2bfcdd7
6 changed files with 665 additions and 32 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ try:
print('Start sensor test')
while True:
time.sleep(0.25)
time.sleep(0.75)
if (GPIO.input(17) == GPIO.LOW):
print('LOW')
GPIO.output(27, GPIO.LOW)
@@ -22,6 +22,6 @@ try:
GPIO.output(27, GPIO.HIGH)
except KeyboardInterrupt:
print('bye')
print('KeyboardInterrupt')
GPIO.cleanup()