 #define ENCODER_SWITCH      A2
 
 // States
-#define IDLE_LIGHT_UP 1
-#define IDLE_TURN_OFF 2
-#define IDLE_WAIT_OFF 3
-#define PLAY_SELECTED 4
+#define IDLE_LIGHT_UP   1
+#define IDLE_TURN_OFF   2
+#define IDLE_WAIT_OFF   3
+#define PLAY_SELECTED   4
+#define TIMEOUT_WAIT    5 
 
 // Volume
 #define VOLUME_MIN       130    // max. 254 moderation

  return READ_DELAY;
}

void onKey(byte index) {
  // Same key pressed again
  if (state == PLAY_SELECTED && playingAlbum == index) {
    stopPlaying();
    onTryNextTrack();

    // Some (other) key pressed
  } else {
    if (state == PLAY_SELECTED) stopPlaying();
    enablePlayer(true);


void blinkSelected(byte index) {
  trellis.clear();
  trellis.setBrightness(BRIGHTNESS_PLAYING);
  trellis.setLED(index);
  trellis.blinkRate(HT16K33_BLINK_1HZ);
  trellis.writeDisplay();
