Merge pull request #25 from adafruit/tannewt-patch-1

Update main.py
This commit is contained in:
John Edgar Park 2017-12-12 17:05:43 -08:00 committed by GitHub
commit 21ee7d1a61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,8 +74,8 @@ while True:
if cpx.button_a: # this means the button has been pressed if cpx.button_a: # this means the button has been pressed
# grab the current_dial_position value and add to the list # grab the current_dial_position value and add to the list
entered_combo.append(current_dial_position) entered_combo.append(current_dial_position)
dialMsg = 'Dial Position: ' + str(entered_combo[(len(entered_combo)-1)]) dial_msg = 'Dial Position: ' + str(entered_combo[(len(entered_combo)-1)])
print(dialMsg) print(dial_msg)
cpx.play_tone(320, 0.3) # beep cpx.play_tone(320, 0.3) # beep
time.sleep(1) # slow down button checks time.sleep(1) # slow down button checks