CheeseBoard
A library for use with the CheeseBoard Cheddar platform
CbLeds.cpp
1 #include <Millis.h>
2 #include "CbLeds.h"
3 #include "CheeseboardConfig.h"
4 
5 CbNeoPixel CbLeds(RGBLED_COUNT, RGBLED_DATA_PIN, RGBLED_TYPE);
6 
7 CbNeoPixel::CbNeoPixel(uint16_t n, uint8_t p, neoPixelType t) :
8  Adafruit_NeoPixel(n, p, t)
9 {
10 }
11 
13 {
14  Adafruit_NeoPixel::show();
15  addMillisOffset(numPixels() * 0.0215);
16 }
17 
18 
19 
20 
CbNeoPixel(uint16_t n, uint8_t p=6, neoPixelType t=NEO_GRB+NEO_KHZ800)
Definition: CbLeds.cpp:7
void show(void)
Definition: CbLeds.cpp:12
Wrapper around Adafruit_NeoPixel with Millis() correction.
Definition: CbLeds.h:21