How to set no color for P1 RGB LED if there is cloud connectivity?

I am trying to set no color for P1 RGB if the particle is connected to cloud. How to do this? I don’t wan’t to turn off my RGB as I want the particle to display RGB LED states when there is no WiFi connectivity.

I want to do something like
theme.setColor(LED_SIGNAL_CLOUD_CONNECTED, RGB_COLOR_NO_COLOR);. Is this possible?


Got it.

theme.setColor(LED_SIGNAL_CLOUD_CONNECTED, 0x00000000);

Did it.

1 Like

Thank you for posting your solution!