Fix comments about what color is being set
The calls to setPixelColor are all commented with // Moderately bright green color. none of which are correct. While I might suggest other changes to this example, at a minimum the comments shouldn't be wrong which might confuse some people.
This commit is contained in:
parent
a5a800b49c
commit
072488f698
1 changed files with 4 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ void loop() {
|
|||
void rampPixelColors(void){
|
||||
pixels.setBrightness(25);
|
||||
for(int i=0;i<NUMPIXELS;i++){
|
||||
pixels.setPixelColor(i, pixels.Color(255,0, 0)); // Moderately bright green color.
|
||||
pixels.setPixelColor(i, pixels.Color(255,0, 0)); // Red
|
||||
pixels.show(); // This sends the updated pixel color to the hardware.
|
||||
Serial.print(ina260.readCurrent());
|
||||
Serial.print(" ");
|
||||
|
|
@ -70,7 +70,7 @@ void rampPixelColors(void){
|
|||
|
||||
pixels.setBrightness(50);
|
||||
for(int i=0;i<NUMPIXELS;i++){
|
||||
pixels.setPixelColor(i, pixels.Color(255,255, 0)); // Moderately bright green color.
|
||||
pixels.setPixelColor(i, pixels.Color(255,255, 0)); // Yellow (Red + Green)
|
||||
pixels.show(); // This sends the updated pixel color to the hardware.
|
||||
Serial.print(ina260.readCurrent());
|
||||
Serial.print(" ");
|
||||
|
|
@ -83,7 +83,7 @@ void rampPixelColors(void){
|
|||
|
||||
pixels.setBrightness(100);
|
||||
for(int i=0;i<NUMPIXELS;i++){
|
||||
pixels.setPixelColor(i, pixels.Color(255,255, 255)); // Moderately bright green color.
|
||||
pixels.setPixelColor(i, pixels.Color(255,255, 255)); // White (Red + Green + Blue)
|
||||
pixels.show(); // This sends the updated pixel color to the hardware.
|
||||
Serial.print(ina260.readCurrent());
|
||||
Serial.print(" ");
|
||||
|
|
@ -93,4 +93,4 @@ void rampPixelColors(void){
|
|||
Serial.println();
|
||||
}
|
||||
delay(delayval); // Delay for a period of time (in milliseconds).
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue