initial commit
This commit is contained in:
31
libraries/FastLED/src/fl/eorder.h
Normal file
31
libraries/FastLED/src/fl/eorder.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/// @file fl/eorder.h
|
||||
/// Defines color channel ordering enumerations in the fl namespace
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace fl {
|
||||
|
||||
/// RGB color channel orderings, used when instantiating controllers to determine
|
||||
/// what order the controller should send data out in. The default ordering
|
||||
/// is RGB.
|
||||
/// Within this enum, the red channel is 0, the green channel is 1, and the
|
||||
/// blue chanel is 2.
|
||||
enum EOrder {
|
||||
RGB=0012, ///< Red, Green, Blue (0012)
|
||||
RBG=0021, ///< Red, Blue, Green (0021)
|
||||
GRB=0102, ///< Green, Red, Blue (0102)
|
||||
GBR=0120, ///< Green, Blue, Red (0120)
|
||||
BRG=0201, ///< Blue, Red, Green (0201)
|
||||
BGR=0210 ///< Blue, Green, Red (0210)
|
||||
};
|
||||
|
||||
// After EOrder is applied this is where W is inserted for RGBW.
|
||||
enum EOrderW {
|
||||
W3 = 0x3, ///< White is fourth
|
||||
W2 = 0x2, ///< White is third
|
||||
W1 = 0x1, ///< White is second
|
||||
W0 = 0x0, ///< White is first
|
||||
WDefault = W3
|
||||
};
|
||||
|
||||
} // namespace fl
|
||||
Reference in New Issue
Block a user