neopixel effect code

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
finnthenerfer
 
Posts: 3
Joined: Mon Jun 07, 2021 12:33 pm

neopixel effect code

Post by finnthenerfer »

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 456 times

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: neopixel effect code

Post by Franklin97355 »


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

Re: neopixel effect code

Post by finnthenerfer »

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

Code: Select all

// 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

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

Return to “Other Arduino products from Adafruit”