Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
colors.h
- Committer:
- dwini
- Date:
- 2015-10-25
- Revision:
- 0:66a5d46a740f
File content as of revision 0:66a5d46a740f:
#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); };