9 NPPattern(Adafruit_NeoPixel &strip,
int brightness)
11 , m_brightness(brightness)
23 uint32_t wheel(byte wheelPos)
25 wheelPos = 255 - wheelPos;
28 return Adafruit_NeoPixel::Color(255 - wheelPos * 3, 0, wheelPos * 3);
33 return Adafruit_NeoPixel::Color(0, wheelPos * 3, 255 - wheelPos * 3);
36 return Adafruit_NeoPixel::Color(wheelPos * 3, 255 - wheelPos * 3, 0);
39 inline void setBrightness(
int inBrightness)
41 m_strip.setBrightness(inBrightness);
42 m_brightness = m_strip.getBrightness();
45 inline int getBrightness()
51 Adafruit_NeoPixel &m_strip;
Definition: NPPattern.h:6