#include <Adafruit_NeoPixel.h>
#include <chainPixels.h>
#include <neoPixel.h>
#include "theRings.h"
chainPixels theRings(3);
starLight ring1;
portLight ring2;
void setup() {
setUpPattern(); // First is to set up the pattern we want.
theRings.addGroup(&ring1); // First on the data line.
theRings.addGroup(&ring2); // Next on the data line.
theRings.hookup(); // Hook into the idle queue.
}
// This set up the color mapper for the design to rotate.
void setUpPattern(void) {
colorObj aColor;
aColor.setColor(&white); // Start with white.
theColors.addColor(0,&aColor); // Fist point on the mapper, white.
aColor.setColor(&red); // Set to red.
theColors.addColor(1,&aColor); // Next point on the mapper, red.
aColor.blend(&black,40); // Let's darken the red a bunch. (For real goggles, try 80)
theColors.addColor(3,&aColor); // Put this one at point three. (1 & 2 will be red blending to this darker red.)
aColor.setColor(&green); // Set to green.
aColor.blend(&black,40); // Darken 40% (Again, for real goggles try 80)
theColors.addColor(4,&aColor); // Stick this on point four.
aColor.setColor(&black); // Set to black.
theColors.addColor(9,&aColor); // From 4..9 fade to black. From 9 on all black.
}
// All loop needs to do is call idle() to run stuff.
void loop() { idle(); }