Skip to content

Commit e6043f9

Browse files
committed
updates for zelda prop
minor updates for zelda prop code
1 parent 9405bd2 commit e6043f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zelda_Tri_Rod_Prop/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
pixel_time = 10
2121
Y_THRESHOLD = -9.0
22+
VERTICAL_TIME = 1.0 # Time in seconds the sensor needs to be vertical to trigger
2223

2324
fx_1 = audiocore.WaveFile(open("/sounds/swing1.wav", "rb"))
2425
fx_2 = audiocore.WaveFile(open("/sounds/swing1b.wav", "rb"))
@@ -32,7 +33,7 @@
3233
audio.play(mixer)
3334

3435
# external neopixels
35-
num_pixels = 50
36+
num_pixels = 60
3637
pixels = neopixel.NeoPixel(board.EXTERNAL_NEOPIXELS, num_pixels, auto_write=False)
3738
pixels.brightness = 0.2
3839

@@ -60,7 +61,6 @@
6061
brightness = 0
6162
increasing = True
6263
pixel_clock = ticks_ms()
63-
VERTICAL_TIME = 2.0 # Time in seconds the sensor needs to be vertical to trigger
6464
# Variables to track time
6565
vertical_start_time = None
6666

0 commit comments

Comments
 (0)