APA102 flickering madly in simplest animations

Weirdly, every section I seem to put colors: in with variables like white throws up Unknown attribute for errors (e.g Unknown attribute for layout Strip: "colors"), unless I change the variable to format COLORS.White, which then tells me Don't understand color name "COLORS.White" - so it seems like it understands what I’m trying to do, but isn’t happy with it in any section - maybe I need to put it in a subsection or somewhere else?

Sorry @adammhaile - any thoughts on the above?

Not by any way shape or form a programer but I have been poking around a bit in the tutorials.

in the annimation section try something like :
animation:
typename:BiblioPixelAnimations.strip.Rainbows.RainbowCycle
palette:
colors: [red, green, blue]
continuous: True
serpentine: True

where continuous and serpentine determine how the change in colors are handled. one interesting detail is the default for colors is black.

https://maniacallabs.github.io/BiblioPixel/tutorial/fields/palettes.html
https://maniacallabs.github.io/BiblioPixel/tutorial/fields/fields-of-a-palette.html

M

1 Like

I’ve answered my own question - it turns out that in the yaml project I needed to replace typename: sequence with typename: $bpa.Twinkle (and remove animations: - $bpa.Twinkle), then colors: [White, Azure, LightSkyBlue, Yellow] works. Not sure why!

Also, thank you @MICHAEL_PETIT, but for some reason using palette with the Twinkle animation results in the error 'list' object has no attribute 'length', but it works for other animations.