 void next_pattern(void);
 
 #if F_CPU == 16000000UL
-#define    TIMER1_INIT         0xF82F
+#define    TIMER1_INIT         1000
 #else
-#define    TIMER1_INIT         0xFC17
-#endif
-#define    TIMER1_FLAGS        _BV(CS11); // 8Mhz / 8 = 1us per tick.
+#define    TIMER1_INIT         61535
+#endif     
 
 volatile uint32_t g_time = 0;
-uint16_t g_timer_init = TIMER1_INIT;
-
-ISR (TIMER1_OVF_vect)
+void tick(void)
 {
     g_time++;
-    TCNT1 = g_timer_init;
 }
 
 uint32_t cmillis(void)

const uint8_t NUM_CLASSES = 10;
const uint8_t NO_CLASS = 255;
uint8_t g_classes[NUM_CLASSES];

// Gamma correction table in progmem
const uint8_t PROGMEM gamma[] = {

                    Serial.read();

                show_color(&col);
                
                g_calibrate = 1;

            }
    }
}
