X-Git-Url: http://russells-world.com/code/?p=vfd-clock.git;a=blobdiff_plain;f=code%2Frhandorf-vfd-clock%2Frhandorf-vfd-clock.ino;h=03bd4ae3d4d8a6dc8a4e4a26d15652df42c456b3;hp=0483d84c2afb6bd701dd9f9a33bafdaa89bb6120;hb=7030b4f40102ca25373df7936c6d07ffaf49cda0;hpb=00fdf700dac499b01a59c3a788e843c12b1052f8 diff --git a/code/rhandorf-vfd-clock/rhandorf-vfd-clock.ino b/code/rhandorf-vfd-clock/rhandorf-vfd-clock.ino index 0483d84..03bd4ae 100644 --- a/code/rhandorf-vfd-clock/rhandorf-vfd-clock.ino +++ b/code/rhandorf-vfd-clock/rhandorf-vfd-clock.ino @@ -117,6 +117,8 @@ void setup() { strip.begin(); // INITIALIZE NeoPixel strip object (REQUIRED) strip.show(); // Turn OFF all pixels ASAP strip.setBrightness(25); // Set BRIGHTNESS to about 1/5 (max = 255) + + chase(); } void chase() { @@ -214,7 +216,7 @@ void loop() { digitalWrite(loadPin, 0); shiftOut(dataPin, clockPin, LSBFIRST, 0b000000000000000000000000000000000000000000000000); digitalWrite(loadPin, 1); - + chase(); while (Seconds<60) { @@ -227,11 +229,17 @@ void loop() { unsigned int pause = 1000; strip.setPixelColor(0, hsl(HColor, saturation, lightness)); + strip.show(); strip.setPixelColor(1, hsl(HColor, saturation, lightness)); + strip.show(); strip.setPixelColor(2, hsl(MColor, saturation, lightness)); + strip.show(); strip.setPixelColor(3, hsl(MColor, saturation, lightness)); + strip.show(); strip.setPixelColor(4, hsl(SColor, saturation, lightness)); + strip.show(); strip.setPixelColor(5, hsl(SColor, saturation, lightness)); + strip.show(); HColor = (HColor + 1) % 360; MColor = (MColor + 1) % 360;