Beach safety
int setBeachStatus(String value) { | |
RGB.control(true); | |
if(value == "green") { | |
RGB.color(RGB_COLOR_GREEN); | |
return 0; | |
} else if(value == "yellow") { | |
RGB.color(RGB_COLOR_YELLOW); | |
return 0; | |
} else if(value == "red") { | |
RGB.color(RGB_COLOR_RED); | |
return 0; | |
} | |
return 1; | |
} | |
void setup() { | |
Particle.function("beach-status", setBeachStatus); | |
} | |
void loop() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment