Skip to content

updates for zelda prop #2899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Zelda_Tri_Rod_Prop/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down