 }
 
 void setup() {
-    //precompute_colors();
     interruptSetup();
     ledsetup();
 }

}

void loop() {
    if (constant == 1) {
        delay(1000);
        /*
        //hsv2rgb_rainbow(constant_color_hue, led_colors[0]);
        
        cli();  
        for (uint8_t index=0; index < PIXELS; index++) {
          sendPixel(rgb_colors[constant_color_index]);
          //sendPixel(test_pixel);
          //sendPixel(rgb_colors[3]);
        }
        show();
        sei();
        delay(500);
        */
    } else {
        for (uint8_t hue=0; hue < 255; hue++) {
            for (uint8_t index=0; index < PIXELS; index++) {
                uint8_t offset = index * delta * direction;
                hsv2rgb_rainbow(hue + offset, led_colors[index]);
            }
            show_all_led_colors();
            delay(20);
            if (constant) {
                clear_led_colors();
                show_all_led_colors();
                delay(300);
                break;
            }
        }
    }
}

uint8_t led_colors[PIXELS][3];
uint8_t constant_color_index=0;
#define CONSTANT_COLORS_LEN 9
uint8_t current_hue=0;

const uint8_t test_pixel[3] = {32,32,32};

