 const int LED_PIN =  2;             // the number of the LED pin
 const String CONST_ID = "01";       // the main Id
 const String CONST_TYPE = "01";     // the id of press button
+
+// ######## DEF ########
+#define LONGPRESS_LEN    25         // Min nr of loops for a long press
+#define DELAY            20         // Delay per loop in ms
 
 // ######## VAR ########
 int buttonState = 0;                // variable for reading the pushbutton status

// ######## SETUP ########
void setup() {
    Serial.begin(9600);
    pinMode(ledPin, OUTPUT);          // initialize the LED pin as an output:
    pinMode(buttonPin, INPUT);        // initialize the pushbutton pin as an input:
    button_was_pressed = false;       // initialize the pushbutton to false (not pressed)
    button_pressed_counter = 0;       // initialize the pusbutton counter
}

// ######## LOOP ########
void loop(){
    boolean eventResult = eventButton();

    switch(eventResult){
        case EV_NONE:               // if nothing append

            //TODO : Faire clignoter la LED et attendre la fin d'une synchronisation.
            break;
    }

    delay(DELAY);
}

// ####### Function ########
