RGB Clock

Arduino sketch:
#include
#include <avr/power.h>
#define PIN 8
#define NUMPIXELS 16

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
pixels.begin();
}

void loop() {
for(int k = 0;k < 49152;k++) { // 11520*3.75s = 12h
int r = (k / 4096) % 16;
int g = (k / 256) % 16;
int b = k % 16;
for(int i=0;i<NUMPIXELS;i++) {
pixels.setPixelColor(i, pixels.Color(
i==r ? 50: 0,
i==g ? 50: 0,
i==b ? 50: 0));
}
pixels.show();
delay(37.50);
}
}