esp8266_LED_RGBLED.cpp
void RGBLED::_alternateRGB(void) {
   _illuminate(_color[_colorIndex]);
   // display next color until we get LEDColor::NONE or reach the end
   if ( (_colorIndex < (MAX_RGB_COLORS-1)) && (_color[_colorIndex+1] != LEDColor::NONE) ) {
      ++_colorIndex;
   } else {
      // cycle back to the start
      _colorIndex = 0; 
   }
}
/*
ISR: Switch between set RGB colors in the color array - called by timer callout
*/
Switch between set RGB colors in the color array - called by timer callout
Switch between set RGB colors in the color array - called by timer callout
void RGBLED::_alternateRGB(void) {
   _illuminate(_color[_colorIndex]);
   if ( (_colorIndex < (MAX_RGB_COLORS-1)) && (_color[_colorIndex+1] != LEDColor::NONE) ) {
      ++_colorIndex;
   } else {
      _colorIndex = 0; 
   }
}
void RGBLED :: _alternateRGB ( void ) { _illuminate ( _color [ _colorIndex ] ) ; if ( ( _colorIndex < ( MAX_RGB_COLORS - 1 ) ) && ( _color [ _colorIndex + 1 ] != LEDColor :: NONE ) ) { ++ _colorIndex ; } else { _colorIndex = 0 ; } }
ISR: Switch between set RGB colors in the color array - called by timer callout
ISR : Switch between set RGB colors in the color array - called by timer callout
// display next color until we get LEDColor::NONE or reach the end // cycle back to the start