   enableAmplifier(false);
   enablePlayer(false);
   initializeTrellis(1200);
+  enterIdle = millis();
   state = IDLE_LIGHT_UP;
   nextLED = 0;
 }


unsigned long nextReadTick = millis();
unsigned long nextIdleTick = millis();
byte state = IDLE_LIGHT_UP;
byte nextLED = 0;
byte playingAlbum;

#include <Adafruit_Trellis.h>
#include <ClickEncoder.h>
#include <TimerOne.h>
#include <LowPower.h>


#define NUMKEYS 4

// Delays [ms]
#define IDLE_PAUSE    2000
#define BLINK_DELAY    100
#define READ_DELAY      50
#define IDLE_TIMEOUT (1000L * 20L)
#define ROLLOVER_GAP (1000L * 60L * 60L)

// Trellis LED brightness 1..15
#define BRIGHTNESS_SLEEPTICK  0
#define BRIGHTNESS_IDLE      10
#define BRIGHTNESS_PLAYING   10

// Trellis pin setup
#define INT_PIN 1
