Multiple device home control

This controls the color of the on board LED of multiple Photons or light strips. I was looking for a simple way to send information to my Photon. Building on my previous work this is a start of controlling multiple devices and having a UI displaying information. This might be the simplest firmware I’ve ever made. Particle and the website do the work.

Comment on what to add next.

#define RGBCONTROLTIME 3000

void setup() {

    Particle.function("rgb", ledrgb);

}

void loop() {

}

int ledrgb( String value ) {

    RGB.control(true);

    RGB.color( value.toInt() );

    delay(RGBCONTROLTIME);

    RGB.control(false);

    return 1;

}
1 Like