Reading Realm LED NeoPixel Final


Goals for this project:

void loop() {
  ArduinoCloud.update();
  // Your code here 
  //Serial.println("looping");
  
  for(int i=0;i<NUMPIXELS;i++){

    // pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
    pixels.setPixelColor(i, pixels.Color(redColor, greenColor, blueColor)); // Moderately bright green color.

    pixels.show(); // This sends the updated pixel color to the hardware.

    delay(delayval); // Delay for a period of time (in milliseconds).
    
    // Serial.println(i);
    
  }
  
} // END LOOP 


void onLEDbuttonChange() {
  // Do something
}

void onButton1Change() {
  // Do something
  
  Serial.println("virtual button click");
  
  lEDbutton = "Button Color 1 Pushed";
    
    noColor();
  
} // End Here

void onButton2Change() {
  // Do something
  
  lEDbutton = "Button Color 2 Pushed";
  
  setColor();
  
} // End Here


void onButton3Change() {
  // Do something
  
  lEDbutton = "Button Color 3 Pushed";
  
  setColor2();
}

void noColor() {
  redColor = 0;
  greenColor = 0;
  blueColor = 0;
};


void setColor(){
  redColor = 0;
  greenColor = 255;
  blueColor = 255;
  Serial.print("red: ");
  Serial.print("green: ");
  Serial.print("blue: ");
  
};

void setColor2() {
  redColor = 255;
  greenColor = 0;
  blueColor = 255;
};

Future Plans: