#include <Adafruit_NeoPixel.h>
int neo_pin = 12;
int noofled = 32;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(noofled,neo_pin);
void setup() {
// put your setup code here, to run once:
strip.begin();
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
//colorFunctionOne();
//colorFunctionTwo();
int createFunctionOne();
for(int i=0; i < noofled; i++){
if(i <= 8){
Serial.println("blue");
strip.setPixelColor(i , strip.Color(0,0,255));
strip.show();
delay(100);
}else if(i < 20 && i > 8){
Serial.println("green");
strip.setPixelColor(i , strip.Color(0,255,0));
strip.show();
delay(100);
}else{
Serial.println("red");
strip.setPixelColor(i , strip.Color(255,0,0));
strip.show();
delay(100);
}
}
int createFunctionTwo();
for(int i=0; i < noofled; i++){
if(i <= 8){
Serial.println("pink");
strip.setPixelColor(i , strip.Color(196,0,255));
strip.show();
delay(100);
}else if(i < 20 && i > 8){
Serial.println("cyan");
strip.setPixelColor(i , strip.Color(0,205,255));
strip.show();
delay(100);
}else{
Serial.println("yellow");
strip.setPixelColor(i , strip.Color(247,255,0));
strip.show();
delay(100);
}
}
int createFunctionThree();
for(int i=0; i < noofled; i++){
if(i <= 8){
Serial.println("cyan");
strip.setPixelColor(i , strip.Color(0,255,85));
strip.show();
delay(100);
}else if(i < 20 && i > 8){
Serial.println("black");
strip.setPixelColor(i , strip.Color(0,0,0));
strip.show();
delay(100);
}else{
Serial.println("white");
strip.setPixelColor(i , strip.Color(255,255,255));
strip.show();
delay(100);
}
}
}