     else if(command.equals(SETBRIGHTNESS))
     {
         brightness = stringToInt(args[1]);
+        _brightness = (int)brightness;
         EEPROM.put(EEPROM_BRIGHTNESS, brightness);
         strip2.setBrightness(brightness);
         strip2.show();


void setup() 
{
    EEPROM.get(EEPROM_ADDR_STRIP_0, stripObj0);
    EEPROM.get(EEPROM_ADDR_STRIP_1, stripObj1);
    EEPROM.get(EEPROM_ADDR_STRIP_2, stripObj2);
    EEPROM.get(EEPROM_ADDR_PINS, pinObj);
    EEPROM.get(EEPROM_BRIGHTNESS, brightness);

    Serial.begin(9600);  
    strip2.begin();
    strip2.show(); // Initialize all pixels to 'off'
    //register the run command as an API endpoint
    Particle.function("run", run);
    //register the action variable as a GET parameter
    Particle.variable("action", action, STRING);
    //register the parameters variable as a GET parameter
    Particle.variable("parameters", parameters, STRING);

    pinMode(PIN_0, OUTPUT);
    pinMode(PIN_1, OUTPUT);

};

uint8_t brightness = 255;
int _brightness = 255;

Adafruit_NeoPixel strip0 = Adafruit_NeoPixel(PIXEL_COUNT_0, PIXEL_PIN_0, PIXEL_TYPE);
LEDObject stripObj0 = {{'I', 'N', 'I', 'T'}};
