Flora Neopixel

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
ryespy
 
Posts: 17
Joined: Fri May 10, 2013 1:30 pm

Flora Neopixel

Post by ryespy »

I am a little confused and quite a beginner. I am trying to have all three pixels show the same color. So far I have just been able to illuminate one at a time. I think I am using the wrong command. I believe I should be using strip.Color and not setPixelColor. Is there anywhere that I can find an explanation of these commands? Thank you for you help. Let me know if I should have posted the whole program.

if (cm >12) {
strip.Color(255, 0, 0); // Red for ping distance > 12cm
strip.show();
delay(300);
strip.Color(0, 0, 0); // blink
strip.show();
delay(300);
}
else{

if (cm < 6) {
// turn LED on:
strip.setPixelColor(0, strip.Color(0, 255, 0)); // Green for ping distance < 6cm
strip.show();
delay(300);
strip.setPixelColor(0, strip.Color(0, 0, 0)); // blink
strip.show();
delay(300);
}
else {
// change LED color
strip.setPixelColor(0, strip.Color(255, 255, 255)); // white for 6cm < ping distance < 12cm
strip.show();
}
}


delay(100);
}

User avatar
ryespy
 
Posts: 17
Joined: Fri May 10, 2013 1:30 pm

Re: Flora Neopixel

Post by ryespy »

AHHH, colorWipe. I figured it out from the test code, once I realized I had to go from 400 to 800mhz

User avatar
ryespy
 
Posts: 17
Joined: Fri May 10, 2013 1:30 pm

Re: Flora Neopixel

Post by ryespy »

I am still totally lost.

User avatar
adafruit_support_bill
 
Posts: 88155
Joined: Sat Feb 07, 2009 10:11 am

Re: Flora Neopixel

Post by adafruit_support_bill »

I am still totally lost.
What are you trying to do?

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

Return to “Other Arduino products from Adafruit”