From e6043f98bbeb12d1616a6311e97fb7540d37651c Mon Sep 17 00:00:00 2001 From: Liz Date: Mon, 7 Oct 2024 10:57:52 -0400 Subject: [PATCH] updates for zelda prop minor updates for zelda prop code --- Zelda_Tri_Rod_Prop/code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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