From d55a51697d0ab2775c55adbceca436ad4c1c316c Mon Sep 17 00:00:00 2001 From: Isaac Wellish Date: Mon, 11 Mar 2019 13:32:06 -0400 Subject: [PATCH] change sleep variable name --- Crickit_Exhibit/code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Crickit_Exhibit/code.py b/Crickit_Exhibit/code.py index 1a84ab536..34b921806 100644 --- a/Crickit_Exhibit/code.py +++ b/Crickit_Exhibit/code.py @@ -53,7 +53,7 @@ num_pixels = 30 pixels = neopixel.NeoPixel(board.A1, num_pixels, brightness=0.3, auto_write=False) #sleep var for pushing both buttons -sleep_buttons = 0.1 +SLEEP_DELAY = 0.1 # NeoPixel function def color_chase(color, wait): @@ -130,4 +130,4 @@ while True: print("Buttons 1 and 2 pressed") for f in (262, 294, 330, 349, 392, 440, 494, 523): tone(board.A0, f, 0.25) - time.sleep(sleep_buttons) + time.sleep(SLEEP_DELAY)