We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9405bd2 commit e6043f9Copy full SHA for e6043f9
Zelda_Tri_Rod_Prop/code.py
@@ -19,6 +19,7 @@
19
20
pixel_time = 10
21
Y_THRESHOLD = -9.0
22
+VERTICAL_TIME = 1.0 # Time in seconds the sensor needs to be vertical to trigger
23
24
fx_1 = audiocore.WaveFile(open("/sounds/swing1.wav", "rb"))
25
fx_2 = audiocore.WaveFile(open("/sounds/swing1b.wav", "rb"))
@@ -32,7 +33,7 @@
32
33
audio.play(mixer)
34
35
# external neopixels
-num_pixels = 50
36
+num_pixels = 60
37
pixels = neopixel.NeoPixel(board.EXTERNAL_NEOPIXELS, num_pixels, auto_write=False)
38
pixels.brightness = 0.2
39
@@ -60,7 +61,6 @@
60
61
brightness = 0
62
increasing = True
63
pixel_clock = ticks_ms()
-VERTICAL_TIME = 2.0 # Time in seconds the sensor needs to be vertical to trigger
64
# Variables to track time
65
vertical_start_time = None
66
0 commit comments