+#include "math.h"
+
 int gPowerState = 1;
 float gHue = 1;
 float gSaturation = 1;

// Only update if turned on
void updateLED() {
    if (gPowerState) {
        hslToRgb(gHue, gSaturation, gBrightness);
    } else {
        ledControl(0,0,0);
    }

}

int hue(String value) {
    delay(200);
    int result = -1;
    if (value.length() > 0) {
        float hueFloat = value.toFloat();
        gHue = hueFloat;// / 360.0;
        result = value.toInt();
    }
    updateLED();
