MutilaNeoPixel
Wrapper for Adafruit_NeoPixel with millis() drift correction
MutilaNeoPixel.cpp
1 #include "MutilaNeoPixel.h"
2 #include "Millis.h"
3 
4 MutilaNeoPixel::MutilaNeoPixel(uint16_t n, uint8_t p, neoPixelType t) :
5  Adafruit_NeoPixel(n, p, t)
6 {
7 }
8 
10 {
11  Adafruit_NeoPixel::show();
12  addMillisOffset(numPixels() * 0.0215);
13 }
14 
15 
16 
void show(void)
Send updated pixel state to LEDs, and update Millis() offset.
MutilaNeoPixel(uint16_t n, uint8_t p=6, neoPixelType t=NEO_GRB+NEO_KHZ800)
Construct a MutilaNeoPixel object.