         currentPixelHue -= (3*256);
       }
             
-      unsigned char phase = currentPixelHue >> 8;
-      unsigned char step = currentPixelHue & 0xff;
+      uint8_t phase = currentPixelHue >> 8;
+      uint8_t step = currentPixelHue & 0xff;
                  
       switch (phase) {
         

                // 010
                //case 2: // Y -> G
                if( Y1 ) {
                    unsigned char twothirds = scale8( offset8, ((256 * 2) / 3));
                    colors[0] = K171 - twothirds;
                    colors[1] = K171 + third;
                }

}

void loop() {
    if (constant) {
        for (uint8_t index=0; index < PIXELS; index++) {
            //hsv2rgb_rainbow(constant_color_hue, led_colors[index]);
            memcpy(led_colors[index], rgb_colors[constant_color_index], 3);
            //led_colors[index][0] = rgb_colors[constant_color_index][0];
            //led_colors[index][1] = rgb_colors[constant_color_index][1];
            //led_colors[index][2] = rgb_colors[constant_color_index][2];
        }
        show_all_led_colors();
        delay(20);
    } 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) {
                break;
            }
        }
    }
}



