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);
}
Flora Neopixel
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ryespy
- Posts: 17
- Joined: Fri May 10, 2013 1:30 pm
Re: Flora Neopixel
AHHH, colorWipe. I figured it out from the test code, once I realized I had to go from 400 to 800mhz
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: Flora Neopixel
What are you trying to do?I am still totally lost.
Please be positive and constructive with your questions and comments.