 
 
 //Note that the PIR sensor needs at least 40 seconds to start up. 
-#define WARM_UP_TIME_MS ((unsigned long) 41000)
-#define COOLDOWN_TIME_MS 5000
-#define ACTIVE_TIME_MS 2000
-#define WARM_UP_FLICKER 200
+#define WARM_UP_TIME ((unsigned long) 41 * TICKS_PER_SEC)
+#define COOLDOWN_TIME ((unsigned long) 5 * TICKS_PER_SEC)
+#define ACTIVE_TIME ((unsigned long) 2 * TICKS_PER_SEC)
+#define WARM_UP_FLICKER 2000
 #define ACTIVE_FLICKER 100
 #define COOLDOWN_FLICKER  200
-#define BUTTON_DEBOUNCE 500
-#define WARM_UP_PRINIT_RATE 100
+#define BUTTON_DEBOUNCE (TICKS_PER_SEC)
+#define WARM_UP_PRINT_RATE ((unsigned long) 1 * TICKS_PER_SEC)
 
 #define EYE_SCANNING_RATE 10 
 

  {

  case S_WARMING_UP:
    if (now % WARM_UP_PRINIT_RATE == 0)
    {
      Serial.println(String(now*100/WARM_UP_TIME_MS, DEC) + "%");
    }

    if (now % WARM_UP_FLICKER == 0)

      if (buttonPushed)
      {
        Serial.println("Unpaused!");
        currentState = S_ARMED;      
        timerStart = now;    
        turnOffAllLEDs();
      }
    }
