Skip to content

Commit fd11c03

Browse files
authored
Merge pull request adafruit#960 from kattni/remove-color-setting
Removing color set as it is irrelevant.
2 parents 6624022 + 4418e29 commit fd11c03

File tree

1 file changed

+4
-6
lines changed
  • Circuit_Playground_Bluefruit_NeoPixel_Controller

1 file changed

+4
-6
lines changed

Circuit_Playground_Bluefruit_NeoPixel_Controller/Receiver.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@
2828

2929
# Setup for comet animation
3030
COMET_SPEED = 0.03 # Lower numbers increase the animation speed
31-
COMET_INITIAL_COLOR = color.MAGENTA # Color before controller is connected
3231
CPB_COMET_TAIL_LENGTH = 5 # The length of the comet on the Circuit Playground Bluefruit
3332
STRIP_COMET_TAIL_LENGTH = 15 # The length of the comet on the NeoPixel strip
3433
CPB_COMET_BOUNCE = False # Set to True to make the comet "bounce" the opposite direction on CPB
3534
STRIP_COMET_BOUNCE = True # Set to False to stop comet from "bouncing" on NeoPixel strip
3635

3736
# Setup for sparkle animation
3837
SPARKLE_SPEED = 0.03 # Lower numbers increase the animation speed
39-
SPARKLE_INITIAL_COLOR = color.PURPLE # Color before controller is connected
4038

4139
# Create the NeoPixel strip
4240
strip_pixels = neopixel.NeoPixel(board.A1, STRIP_PIXEL_NUMBER, auto_write=False)
@@ -54,14 +52,14 @@
5452
sync=True
5553
),
5654
AnimationGroup(
57-
Comet(cpb.pixels, COMET_SPEED, COMET_INITIAL_COLOR, tail_length=CPB_COMET_TAIL_LENGTH,
55+
Comet(cpb.pixels, COMET_SPEED, color.MAGENTA, tail_length=CPB_COMET_TAIL_LENGTH,
5856
bounce=CPB_COMET_BOUNCE),
59-
Comet(strip_pixels, COMET_SPEED, COMET_INITIAL_COLOR, tail_length=STRIP_COMET_TAIL_LENGTH,
57+
Comet(strip_pixels, COMET_SPEED, color.MAGENTA, tail_length=STRIP_COMET_TAIL_LENGTH,
6058
bounce=STRIP_COMET_BOUNCE)
6159
),
6260
AnimationGroup(
63-
Sparkle(cpb.pixels, SPARKLE_SPEED, SPARKLE_INITIAL_COLOR),
64-
Sparkle(strip_pixels, SPARKLE_SPEED, SPARKLE_INITIAL_COLOR)
61+
Sparkle(cpb.pixels, SPARKLE_SPEED, color.PURPLE),
62+
Sparkle(strip_pixels, SPARKLE_SPEED, color.PURPLE)
6563
),
6664
)
6765

0 commit comments

Comments
 (0)