LED bus driver on any GPIO pin for addressable RGB LEDs (like NeoPixels or other WS2812 based LEDs)
Color.h
- Committer:
- koengroener
- Date:
- 2017-06-14
- Revision:
- 3:67e68c46daef
- Parent:
- 2:735bb1b9cfc2
File content as of revision 3:67e68c46daef:
#ifndef _COLOR_H_ #define _COLOR_H_ /** RGB Color */ struct Color { /** Constructor with rgb initializing @param r - the red byte @param g - the green byte @param b - the blue byte */ Color(uint8_t r, uint8_t g, uint8_t b) { red = r; green = g; blue = b; } /** Default constructor */ Color() { } /** Red byte */ uint8_t red; /** Green byte */ uint8_t green; /** Blue byte */ uint8_t blue; }; /** Order of r, g and b bytes */ enum ColorByteOrder { RGB, RBG, GRB, GBR, BRG, BGR, }; #endif