Skip to content

Commit b34a162

Browse files
committed
Adding sound files
Unzipped sound files
1 parent 76b4975 commit b34a162

File tree

12 files changed

+10
-6
lines changed

12 files changed

+10
-6
lines changed
-480 KB
Binary file not shown.

Burning_Fire_Wizard_Staff/code.py

100755100644
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,17 @@
1818
import neopixel
1919
import adafruit_lis3dh
2020

21+
# CHANGE TO MATCH YOUR RING AND STRIP SETUP
22+
NUM_RING = 12 #12 pixel ring
23+
NUM_STRIP = 44 # 44 pixels in my NeoPixel strip
24+
NUM_PIXELS = NUM_STRIP + NUM_RING #total number of pixels
25+
26+
NEOPIXEL_PIN = board.D5 # PropMaker Wing uses D5 for NeoPixel plug
27+
POWER_PIN = board.D10
28+
29+
2130
# CUSTOMISE COLORS HERE:
22-
COLOR = (200, 50, 0) # Default idle is orange
31+
COLOR = (200, 30, 0) # Default idle is orange
2332
ALT_COLOR = (0, 200, 200) # hit color is teal
2433
SWING_COLOR = (200, 200, 200) #swing animation color is white
2534
TOP_COLOR = (100, 100, 0) #top color is yellow-green
@@ -42,11 +51,6 @@
4251
POWER_ON_SOUND_DURATION = 3.0
4352
YELL_SOUND_DURATION = 1.0
4453

45-
NUM_RING = 12 #12 pixel ring
46-
NUM_STRIP = 44 # 44 pixels in my NeoPixel strip
47-
NUM_PIXELS = NUM_STRIP + NUM_RING #total number of pixels
48-
NEOPIXEL_PIN = board.D5 # PropMaker Wing uses D5 for NeoPixel plug
49-
POWER_PIN = board.D10
5054

5155
enable = digitalio.DigitalInOut(POWER_PIN)
5256
enable.direction = digitalio.Direction.OUTPUT
52.7 KB
Binary file not shown.
86.4 KB
Binary file not shown.
71.6 KB
Binary file not shown.
52.7 KB
Binary file not shown.
264 KB
Binary file not shown.
46.9 KB
Binary file not shown.
7.94 KB
Binary file not shown.
9 KB
Binary file not shown.

0 commit comments

Comments
 (0)