esp8266_LED_RGBLED.cpp
void RGBLED::setColor(const LEDColor color1, const LEDColor color2,  const LEDColor color3, 
                      const LEDColor color4, const LEDColor color5, const LEDColor color6) {
   _color[0] = color1;           //only arg that must be present
   _color[1] = color2;
   _color[2] = color3;
   _color[3] = color4;
   _color[4] = color5;
   _color[5] = color6;
   _colorIndex = 0;
}
/*
 set one or more LED colors
 at least one color must be specified
 for 1 arg, the LED is treated as a single-color LED; for more than 1, the colors will alternate
 the first color arg equal to NONE indicates the end of the list (or we reach the end of the array)
 Note that alternating is controlled by the selected LEDState (e.g. ALTERNATE), not by the color list;
   thus, multiple colors could be set but only one is displayed
 */
set one or more LED colors
at least one color must be specified
for 1 arg, the LED is treated as a single-color LED; for more than 1, the colors will alternate
the first color arg equal to NONE indicates the end of the list (or we reach the end of the array)
Note that alternating is controlled by the selected LEDState , not by the color list;
thus, multiple colors could be set but only one is displayed
set one or more LED colors at least one color must be specified for 1 arg the LED is treated as a single - color LED ; for more than 1 the colors will alternate the first color arg equal to NONE indicates the end of the list ( or we reach the end of the array ) Note that alternating is controlled by the selected LEDState not by the color list ; thus multiple colors could be set but only one is displayed
void RGBLED::setColor(const LEDColor color1, const LEDColor color2,  const LEDColor color3, 
                      const LEDColor color4, const LEDColor color5, const LEDColor color6) {
   _color[0] = color1;           
   _color[1] = color2;
   _color[2] = color3;
   _color[3] = color4;
   _color[4] = color5;
   _color[5] = color6;
   _colorIndex = 0;
}
void RGBLED :: setColor ( const LEDColor color1 , const LEDColor color2 , const LEDColor color3 , const LEDColor color4 , const LEDColor color5 , const LEDColor color6 ) { _color [ 0 ] = color1 ; _color [ 1 ] = color2 ; _color [ 2 ] = color3 ; _color [ 3 ] = color4 ; _color [ 4 ] = color5 ; _color [ 5 ] = color6 ; _colorIndex = 0 ; }
set one or more LED colors
at least one color must be specified
for 1 arg, the LED is treated as a single-color LED; for more than 1, the colors will alternate
the first color arg equal to NONE indicates the end of the list (or we reach the end of the array)
Note that alternating is controlled by the selected LEDState (e.g.
set one or more LED colors at least one color must be specified for 1 arg the LED is treated as a single - color LED ; for more than 1 the colors will alternate the first color arg equal to NONE indicates the end of the list ( or we reach the end of the array ) Note that alternating is controlled by the selected LEDState ( e . g .
//only arg that must be present