0

neopixel effect code
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

neopixel effect code

by finnthenerfer on Sat Jun 12, 2021 10:26 am

Hi. I'm new to coding and wanted to program an effect for my neopixel strip that I'm using to light up a nerf blaster. I'm in need of a piece of code that makes the effect below.

help would be greatly appreciated!



thanks
-finn
Attachments
New Piskel.gif
New Piskel.gif (21.2 KiB) Viewed 306 times

finnthenerfer
 
Posts: 3
Joined: Mon Jun 07, 2021 12:33 pm

Re: neopixel effect code

by franklin97355 on Sat Jun 12, 2021 12:03 pm


franklin97355
 
Posts: 21959
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: neopixel effect code

by finnthenerfer on Sat Jun 12, 2021 4:07 pm

close enough. trying to set this line to blue in a piece of code I found:

Code: Select all | TOGGLE FULL SIZE
// Simply experimental values on red.
uint32_t red_strength[] =
{
    0x00000000,  // red
    0x00000100,  //
    0x00000300,  //
    0x00000A00,  //
    0x00000F00,  //
    0x00001000,  //
    0x00001600,  //
    0x00002000,  //
    0x00002F00,  //
    0x00005000,  //
    0x00005000,  //
};


figured out what I wanted was the nightrider effect

finnthenerfer
 
Posts: 3
Joined: Mon Jun 07, 2021 12:33 pm

Please be positive and constructive with your questions and comments.