NeoPixel Plasma Pistol Prop (Code Help Needed)

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 88136
Joined: Sat Feb 07, 2009 10:11 am

Re: NeoPixel Plasma Pistol Prop (Code Help Needed)

Post by adafruit_support_bill »

How could I modify the for statement so the first light is green, the second two are yellow
You can use the same code as in your setup. Or this would work also:

Code: Select all

strip.setPixelColor(0, green);  // set pixel 0
for ( uint8_t i=1; i < strip.numPixels(); i++ ) strip.setPixelColor ( i, yellow );   // set pixel 1 through the end of the strip
and they all come back on once we hit maximum brightness?
Not sure I understand. If they are at max brightness they are already on aren't they?

User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Re: NeoPixel Plasma Pistol Prop (Code Help Needed)

Post by joshuakane »

Thanks Bill!

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

Return to “Arduino”