diff --git a/Zelda_Tri_Rod_Prop/code.py b/Zelda_Tri_Rod_Prop/code.py index 672d43ced..92f4568d8 100644 --- a/Zelda_Tri_Rod_Prop/code.py +++ b/Zelda_Tri_Rod_Prop/code.py @@ -19,6 +19,7 @@ pixel_time = 10 Y_THRESHOLD = -9.0 +VERTICAL_TIME = 1.0 # Time in seconds the sensor needs to be vertical to trigger fx_1 = audiocore.WaveFile(open("/sounds/swing1.wav", "rb")) fx_2 = audiocore.WaveFile(open("/sounds/swing1b.wav", "rb")) @@ -32,7 +33,7 @@ audio.play(mixer) # external neopixels -num_pixels = 50 +num_pixels = 60 pixels = neopixel.NeoPixel(board.EXTERNAL_NEOPIXELS, num_pixels, auto_write=False) pixels.brightness = 0.2 @@ -60,7 +61,6 @@ brightness = 0 increasing = True pixel_clock = ticks_ms() -VERTICAL_TIME = 2.0 # Time in seconds the sensor needs to be vertical to trigger # Variables to track time vertical_start_time = None