7 np
= neopixel
.NeoPixel(pin0
, NP_COUNT
)
15 for n
in range(NP_COUNT
):
20 def shoot_firework(pixels
):
21 for pixel
in range(NP_COUNT
- BURST_SIZE
):
30 last_gesture
= accelerometer
.current_gesture() # Add this line
33 gesture
= accelerometer
.current_gesture() # Add this line
34 if gesture
!= last_gesture
or button_a
.is_pressed(): # Change this line
38 last_gesture
= gesture
# Add this line