change sleep variable name

This commit is contained in:
Isaac Wellish 2019-03-11 13:32:06 -04:00
parent b4bcac33b6
commit d55a51697d

View file

@ -53,7 +53,7 @@ num_pixels = 30
pixels = neopixel.NeoPixel(board.A1, num_pixels, brightness=0.3, auto_write=False) pixels = neopixel.NeoPixel(board.A1, num_pixels, brightness=0.3, auto_write=False)
#sleep var for pushing both buttons #sleep var for pushing both buttons
sleep_buttons = 0.1 SLEEP_DELAY = 0.1
# NeoPixel function # NeoPixel function
def color_chase(color, wait): def color_chase(color, wait):
@ -130,4 +130,4 @@ while True:
print("Buttons 1 and 2 pressed") print("Buttons 1 and 2 pressed")
for f in (262, 294, 330, 349, 392, 440, 494, 523): for f in (262, 294, 330, 349, 392, 440, 494, 523):
tone(board.A0, f, 0.25) tone(board.A0, f, 0.25)
time.sleep(sleep_buttons) time.sleep(SLEEP_DELAY)