Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

AnimationGroup Same NeoPixel Strip Odd vs Even
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

AnimationGroup Same NeoPixel Strip Odd vs Even

by adafruitguy on Sun Oct 24, 2021 8:45 am

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?

adafruitguy
 
Posts: 143
Joined: Sat Jun 07, 2014 7:52 am

Re: AnimationGroup Same NeoPixel Strip Odd vs Even

by mikeysklar on Tue Oct 26, 2021 4:13 pm

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

mikeysklar
 
Posts: 6223
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.