documentation

This commit is contained in:
2019-02-14 09:33:34 +01:00
parent c74a579d60
commit 6ad8e500ba
5 changed files with 14 additions and 13 deletions
+6 -6
View File
@@ -9,17 +9,17 @@ GPIO.setup(10, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(11, GPIO.IN, pull_up_down=GPIO.PUD_UP)
try:
print('Start button test')
print('Start button test - End with Ctrl-C')
while True:
if (GPIO.input(9) == False):
print('Button 1')
if (GPIO.input(10) == False):
print('Button 2')
print('Button 1 (PREV)')
if (GPIO.input(9) == False):
print('Button 2 (PLAY/PAUSE)')
if (GPIO.input(11) == False):
print('Button 3')
print('Button 3 (NEXT)')
time.sleep(0.25)