 // ######## DEF ########
 #define LONGPRESS_LEN    40         // Min nr of loops for a long press
 #define DELAY            20        // Delay per loop in ms
-
+#define DELAY_BLINK      50000
 // ######## VAR ########
 int buttonState = 0;                // variable for reading the pushbutton status
 int ledState = 0;                   // variable for the led state
 int currenteState = 0;              // temp variable
 int button_pressed_counter;         // press running duration
 boolean button_was_pressed;         // previous state
+
+long previousMillis = 0; 
+long interval = 100;           // interval at which to blink (milliseconds)
 
 // ######## ENUM ########
 enum {

// turn LED on:
void turnOn(){
    digitalWrite(LED_PIN, HIGH);
    Serial.println(CONST_ID+":"+CONST_TYPE+":1");
}

// turn LED Off:
void turnOff(){
    digitalWrite(LED_PIN, LOW);
    Serial.println(CONST_ID+":"+CONST_TYPE+":0");
}

            break;
        case EV_SHORTPRESS:         // if short press
            //TODO : Allumer ou éteindre la LED (a check)
            if(digitalRead(LED_PIN) == HIGH)
                    turnOff();
            else
                    turnOn();
            break;
        case EV_LONGPRESS:          // if long press
            //TODO : Faire clignoter la LED et attendre la fin d'une synchronisation.
            syncArduino();
            turnBlink();
            break;
    }
    delay(DELAY);
