AnimationGroup Same NeoPixel Strip Odd vs Even

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
adafruitguy
 
Posts: 206
Joined: Sat Jun 07, 2014 7:52 am

AnimationGroup Same NeoPixel Strip Odd vs Even

Post by adafruitguy »

The CircuitPython examples in AnimationGroups show two separate pixel objects as: Circuit Playground built-in and a NeoPixel strip.

https://learn.adafruit.com/circuitpytho ... tion-group

What if I wanted to run an AnimationGroup across the 1). odd and 2). even pixels of the same NeoPixel strip?

ie Sparkle or SparklePulse with orange on the odd, and purple on the evens?

Anyone have any hints?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: AnimationGroup Same NeoPixel Strip Odd vs Even

Post by mikeysklar »

The adafruit_led_animation library is not going to allow the AnimationGroup to break into odd / even numbered NeoPixels. You will limited to using entire pixel_objects (NeoPixel strips, rings, CP built-ins).

You could look into Pixel Mapping as a way to get finer control within a strip. This is really meant more for arrays and I don't see it integrating with sparkle / sparkleplus.

https://learn.adafruit.com/circuitpytho ... el-mapping

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”