Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
Diff: colors.h
- Revision:
- 0:66a5d46a740f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/colors.h Sun Oct 25 11:24:54 2015 +0000 @@ -0,0 +1,16 @@ +#pragma once + +#include "neopixel.h" + +namespace Colors { + const neopixel::Pixel Red = { 255, 0, 0 }; + const neopixel::Pixel Green = { 0, 255, 0 }; + const neopixel::Pixel Blue = { 0, 0, 255 }; + const neopixel::Pixel White = { 255, 255, 255 }; + const neopixel::Pixel Black = { 0, 0, 0 }; +} + +class ColorAdjuster { + public: + static neopixel::Pixel intensity(neopixel::Pixel pix, unsigned short intensity); +}; \ No newline at end of file