Library to control NeoPixel strings of RGB leds

Dependencies:   PixelArray

Dependents:   NeoPixelI2cSlave NeoPixelI2cSlave

colors.h

Committer:
dwini
Date:
2016-04-15
Revision:
3:7d32f46a38d3
Parent:
0:66a5d46a740f

File content as of revision 3:7d32f46a38d3:

#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);
};