Skip to content

Commit d55a516

Browse files
Isaac WellishIsaac Wellish
Isaac Wellish
authored and
Isaac Wellish
committed
change sleep variable name
1 parent b4bcac3 commit d55a516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Crickit_Exhibit/code.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
pixels = neopixel.NeoPixel(board.A1, num_pixels, brightness=0.3, auto_write=False)
5454

5555
#sleep var for pushing both buttons
56-
sleep_buttons = 0.1
56+
SLEEP_DELAY = 0.1
5757

5858
# NeoPixel function
5959
def color_chase(color, wait):
@@ -130,4 +130,4 @@ def color_chase(color, wait):
130130
print("Buttons 1 and 2 pressed")
131131
for f in (262, 294, 330, 349, 392, 440, 494, 523):
132132
tone(board.A0, f, 0.25)
133-
time.sleep(sleep_buttons)
133+
time.sleep(SLEEP_DELAY)

0 commit comments

Comments
 (0)