Skip to content

Commit 1a600cf

Browse files
authored
Add files via upload
prefixed "black" formating
1 parent 1d0b9da commit 1a600cf

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

examples/led_animation_all_animations.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
rainbow_comet = RainbowComet(pixels, speed=0.1, tail_length=7, bounce=True)
4545
rainbow_chase = RainbowChase(pixels, speed=0.1, size=3, spacing=2, step=8)
4646
rainbow_sparkle = RainbowSparkle(pixels, speed=0.1, num_sparkles=15)
47-
custom_color_chase = CustomColorChase(pixels, speed=0.1, size=2, spacing=3,colors=[ORANGE, WHITE, JADE])
47+
custom_color_chase = CustomColorChase(
48+
pixels, speed=0.1, size=2, spacing=3, colors=[ORANGE, WHITE, JADE]
49+
)
4850

4951

5052
animations = AnimationSequence(

examples/led_animation_customcolorchase.py

+14-7
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111

1212
from adafruit_led_animation.animation.customcolorchase import CustomColorChase
1313
from adafruit_led_animation.sequence import AnimationSequence
14+
1415
# colorwheel only needed for rainbowchase example
1516
from adafruit_led_animation.color import colorwheel
17+
1618
# Colors for customcolorchase examples
1719
from adafruit_led_animation.color import PINK, GREEN, RED, BLUE
1820

@@ -28,22 +30,27 @@
2830

2931
# colors default to RAINBOW as defined in color.py
3032
custom_color_chase_rainbow = CustomColorChase(pixels, speed=0.1, size=2, spacing=3)
31-
custom_color_chase_rainbow_r = CustomColorChase(pixels, speed=0.1, size=3, spacing=3,reverse=True)
33+
custom_color_chase_rainbow_r = CustomColorChase(
34+
pixels, speed=0.1, size=3, spacing=3, reverse=True
35+
)
3236

3337
# Example with same colors as RainbowChase
34-
steps=30
35-
#This was taken from rainbowchase.py
38+
steps = 30
39+
# This was taken from rainbowchase.py
3640
rainbow_colors = [colorwheel(n % 256) for n in range(0, 512, steps)]
37-
#Now use rainbow_colors with CustomColorChase
38-
custom_color_chase_rainbowchase = CustomColorChase(pixels, speed=0.1, colors=rainbow_colors, size=2, spacing=3)
41+
# Now use rainbow_colors with CustomColorChase
42+
custom_color_chase_rainbowchase = CustomColorChase(
43+
pixels, speed=0.1, colors=rainbow_colors, size=2, spacing=3
44+
)
3945

4046
custom_color_chase_bgp = CustomColorChase(
4147
pixels, speed=0.1, colors=[BLUE, GREEN, PINK], size=3, spacing=2
4248
)
4349

4450
# Can use integer values for color, 0 is black
4551
custom_color_chase_br = CustomColorChase(
46-
pixels, speed=0.1, colors=[BLUE, 0, RED, 0], size=2, spacing=0 )
52+
pixels, speed=0.1, colors=[BLUE, 0, RED, 0], size=2, spacing=0
53+
)
4754

4855
animations = AnimationSequence(
4956
custom_color_chase_rainbow,
@@ -52,7 +59,7 @@
5259
custom_color_chase_bgp,
5360
custom_color_chase_br,
5461
advance_interval=6,
55-
#advance_on_cycle_complete=True,
62+
# advance_on_cycle_complete=True,
5663
auto_clear=True,
5764
)
5865

0 commit comments

Comments
 (0)