Commit graph

439 commits

Author SHA1 Message Date
Dan Halbert
8af0570596
Merge pull request #129 from hberg32/patch-1
Fix initial offset calculation when reversed in chase.py
2025-07-31 16:57:08 -04:00
hberg32
9cb567f013
Fix initial offset calculation when reversed in chase.py
Found a bug in the chase animation when reverse is set to True which results in the animation being offset by the length of the size parameter.  You can observe this by setting up two animations of equal length on a single strip of pixels with the second one reversed.  The bars should appear to meet in the middle but don't.

Example:
pixels = neopixel.NeoPixel(board.A0, 22, auto_write=False, brightness = .5)
left_pixels = PixelSubset(pixels, 0, 11)
right_pixels = PixelSubset(pixels, 11, 22)
left_animation = Chase(
    left_pixels, speed=.5, color=CYAN, size=2, spacing=11
)

right_animation = Chase(
    right_pixels, speed=.5, color=CYAN, size=2, spacing=11, reverse=True
)

animations = AnimationSequence(
    AnimationGroup(
        left_animation,
        right_animation,
        sync=True
    ),
    auto_clear=True,
    auto_reset=True,
)

while True:
    animations.animate()
2025-07-31 16:41:58 -04:00
foamyguy
5d13d0966a update rtd.yml file
Signed-off-by: foamyguy <foamyguy@gmail.com>
2025-06-17 10:31:12 -05:00
foamyguy
c76c948175
Merge pull request #127 from adafruit/use_ruff
change to ruff
2025-05-16 11:39:00 -05:00
foamyguy
d06c5ca9df change to ruff 2025-05-16 16:29:36 +00:00
foamyguy
964b8dafe2
Merge pull request #125 from jposada202020/PacMan_animation
PacMan animation
2025-04-24 15:55:54 -05:00
foamyguy
78a74180d0 lower brightness in pacman example 2025-04-24 15:50:08 -05:00
foamyguy
37800fe313
Merge pull request #124 from jposada202020/blink-with-user-color-selected-background
Blink with user color selected background
2025-04-24 15:42:44 -05:00
jposada2020
a8e057cf93 adding pacman animation 2025-02-09 22:48:07 -05:00
jposada2020
bfdbe0078c adding Pacman Animation 2025-02-09 22:47:22 -05:00
jposada2020
34bcf3c535 formating 2025-02-05 17:10:48 -05:00
jposada2020
c7dc901791 Blink animation with a user selected background color 2025-02-05 17:02:54 -05:00
foamyguy
83b87ef867 add sphinx configuration to rtd.yaml
Signed-off-by: foamyguy <foamyguy@gmail.com>
2025-01-16 09:18:08 -06:00
foamyguy
908a031aa7
Merge pull request #123 from FoamyGuy/period_property_more_animations
add period property to pulse and sparklepulse, fix typo
2024-12-30 09:28:27 -06:00
foamyguy
0b66cc1c11 add period property to pulse and sparklepulse, fix typo 2024-12-20 17:56:28 -06:00
foamyguy
0d782f83ef
Merge pull request #122 from FoamyGuy/rainbowcommet_256_length_fix
rainbow commet fix for tail_length > 256
2024-12-18 12:45:02 -06:00
foamyguy
6ef0715b77 integer division 2024-12-16 14:47:32 -06:00
foamyguy
bac273b46d rainbow commet fix for tail_length > 256 2024-12-13 11:52:07 -06:00
foamyguy
bcdedb2303
Merge pull request #121 from FoamyGuy/rainbow_period_property
public property for rainbow.period
2024-12-13 11:28:40 -06:00
foamyguy
ee5301b938 format 2024-12-13 10:56:56 -06:00
foamyguy
7dc67c5c70 add docstring 2024-12-13 10:45:59 -06:00
foamyguy
5badc804f7 public property for rainbow.period 2024-12-13 10:36:07 -06:00
foamyguy
389e40119d remove deprecated get_html_theme_path() call
Signed-off-by: foamyguy <foamyguy@gmail.com>
2024-10-07 14:48:22 -05:00
Dan Halbert
8dda51a010
Merge pull request #120 from indomitableSwan/main
Fixes #76
2024-08-21 16:52:46 -04:00
indomitableSwan
3d91a78621 Move misplaced computation of wheel_index into the case for precompute_rainbow=True 2024-08-21 15:14:52 -04:00
Dan Halbert
576a094602
Merge pull request #119 from xsorifc28/main
fix(ISSUE-118): move pulse generator from helper to own file to reduce memory footprint when imported
2024-07-06 12:02:58 -04:00
Samed Ozdemir
ef3ab8ae2d fix: move pulse generator from helper to own file to reduce memory footprint when imported 2024-07-06 11:50:39 -04:00
foamyguy
251bcd13cf
Merge pull request #116 from tylerwinfield/main
Restores min_intensity and max_intensity for Pulse animation and smoother transition option
2024-01-28 18:42:19 -06:00
Tyler Winfield
786cd806fc Resolving build CI errors 2023-12-28 09:01:11 -06:00
Dan Halbert
35d8c011b8
Merge pull request #115 from tneish/horiz_animation
ColorCycle accepts start color
2023-12-27 16:43:47 -05:00
tneish
cba51fb34b
Update adafruit_led_animation/animation/colorcycle.py
Adding the new arg to the end will make any calls upward.compatible

Co-authored-by: Dan Halbert <halbert@halwitz.org>
2023-12-27 22:40:48 +01:00
tneish
43aa654b4d cycle complete at start_color 2023-12-27 22:33:33 +01:00
Tyler Winfield
1293a471eb Corrected position calculation after introducing breath pauses 2023-12-20 11:47:39 -06:00
Tyler Winfield
72c6c68451 Variable type-o 2023-12-19 23:20:06 -06:00
Tyler Winfield
a855c3b99e Simplified comparison chain 2023-12-19 23:16:10 -06:00
Tyler Winfield
f16e519991 Corrected variable scoping 2023-12-19 23:04:12 -06:00
Tyler Winfield
fc1aefafca Adds min_intensity and max_intensity support back to Pulse animation. Introduces a 'breath' value (default 0) to give a duration to hold the minimum and maximum intensity during the animation for smoother changes in direction. 2023-12-19 22:01:30 -06:00
tneish
da467ce9b7 Fix pylint errors 2023-12-16 11:23:17 +01:00
tneish
cce709470f ColorCycle accepts start color 2023-12-16 11:15:27 +01:00
foamyguy
0f24be5dad unpin sphinx and add sphinx-rtd-theme to docs reqs
Signed-off-by: foamyguy <foamyguy@gmail.com>
2023-12-04 09:53:59 -06:00
foamyguy
5cd37ed2f5 "fix rtd theme
"
2023-09-18 16:24:07 -05:00
foamyguy
ed8e0bafe2
Merge pull request #67 from gamblor21/timed-animation
Timed animation
2023-08-06 20:04:40 -05:00
foamyguy
e23e57b421 reuse formatting. add examples for new functionality 2023-06-29 19:36:32 -05:00
foamyguy
fe11f17986 Merge branch 'main' into timed-animation 2023-06-29 18:59:01 -05:00
Tekktrik
66898580ac Update .pylintrc, fix jQuery for docs
Signed-off-by: Tekktrik <tekktrik@gmail.com>
2023-05-23 21:14:34 -04:00
Tekktrik
46f1be6bce Run pre-commit 2023-05-10 22:36:01 -04:00
Tekktrik
df79acd1a2 Update pre-commit hooks
Signed-off-by: Tekktrik <tekktrik@gmail.com>
2023-05-10 15:27:22 -04:00
Alec Delaney
7fd9f41ba1
Merge pull request #105 from FoamyGuy/multicolor_comet
adding multicolor comet animation
2023-02-27 09:56:10 -05:00
foamyguy
0629e1418e Merge branch 'main' into multicolor_comet
# Conflicts:
#	adafruit_led_animation/animation/comet.py
2023-02-24 17:26:50 -06:00
foamyguy
3aaa75efbf add star arg and docstring for name 2023-02-24 17:24:48 -06:00