   reset_avg_values();
 
   // Time references init:
-  execution_intervals[INTERVAL_NUNCHUK][INTERVAL_DURATION] = 25; // poll nunchuk every n ms
+  execution_intervals[INTERVAL_NUNCHUK][INTERVAL_DURATION] = DEFAULT_NUNCHUK_INTERVAL; // poll nunchuk every n ms
   execution_intervals[INTERVAL_NUNCHUK][INTERVAL_LAST] = 0;
 
-  execution_intervals[INTERVAL_SERVO][INTERVAL_DURATION] = 40; // write servo position every n ms
+  execution_intervals[INTERVAL_SERVO][INTERVAL_DURATION] = DEFAULT_SERVO_INTERVAL; // write servo position every n ms
   execution_intervals[INTERVAL_SERVO][INTERVAL_LAST] = 0;
 
-  execution_intervals[INTERVAL_BLUETOOTH][INTERVAL_DURATION] = 100; // send rc2 message every n ms
+  execution_intervals[INTERVAL_BLUETOOTH][INTERVAL_DURATION] = DEFAULT_RC2_INTERVAL; // send rc2 message every n ms
   execution_intervals[INTERVAL_BLUETOOTH][INTERVAL_LAST] = 0;
 
-  execution_intervals[INTERVAL_LCD][INTERVAL_DURATION] = 20; // wait n ms before writing on the screen again
+  execution_intervals[INTERVAL_LCD][INTERVAL_DURATION] = DEFAULT_DISPLAY_INTERVAL; // wait n ms before writing on the screen again
   execution_intervals[INTERVAL_LCD][INTERVAL_LAST] = 0;
 
   set_horizon_value();

    for(int i = 0; i < 16 - line_length; ++i) {
      lcd.write(" ");
    }

    execution_intervals[INTERVAL_LCD][INTERVAL_DURATION] = wait;
  }
}


// LCD shield
LiquidCrystal lcd(LCD_PIN_1, LCD_PIN_2, LCD_PIN_3, LCD_PIN_4, LCD_PIN_5, LCD_PIN_6);
// LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

const int DEFAULT_DISPLAY_INTERVAL = 1000/DEFAULT_DISPLAY_FREQUENCY;
const int DEFAULT_RC2_INTERVAL = 1000/DEFAULT_RC2_FREQUENCY;
const int DEFAULT_NUNCHUK_INTERVAL = 1000/DEFAULT_NUNCHUK_FREQUENCY;
const int DEFAULT_SERVO_INTERVAL = 1000/DEFAULT_SERVO_FREQUENCY;

// LCD shield buttons values
enum {
