 
 #define LOCALDOMAIN "veronicalamp"
 #define FACTORY_RESET_PIN 5
-#define R_PIN 13
-#define G_PIN 12
-#define B_PIN 14
 
 const char json[] = "{\"a\": \"%d\", \"c\": [\"%02x%02x%02x\", \"%02x%02x%02x\", \"%02x%02x%02x\", \"%02x%02x%02x\", \"%02x%02x%02x\", \"%02x%02x%02x\", \"%02x%02x%02x\", \"%02x%02x%02x\"], \"m\": \"%d\", \"n\": \"%s\", \"s\": \"%s\", \"u\": \"%d:%d:%d\", \"w\": \"%d\"}";
 


    // Initialise pins
    pinMode( FACTORY_RESET_PIN, INPUT );
    pinMode( R_PIN, OUTPUT );
    pinMode( G_PIN, OUTPUT );
    pinMode( B_PIN, OUTPUT );

    // Attach an interrupt to the Factory Reset Pin for Access Control
    attachInterrupt(FACTORY_RESET_PIN, physicalAccess, RISING);

}

byte R(byte r) {
    Serial.print("R ");
    Serial.println(r);
    return (m_R = r);
}

byte G(byte g) {
    Serial.print("G ");
    Serial.println(g);
    return (m_G = g);
}

byte B(byte b) {
    Serial.print("B ");
    Serial.println(b);
    return (m_B = b);
}

