Control Surface  1.1.0
MIDI Control Surface library for Arduino
ShiftRegisterOutRGB.hpp
Go to the documentation of this file.
1 /* ✔ */
2 
3 #pragma once
4 
6 AH_DIAGNOSTIC_WERROR() // Enable errors on warnings
7 
8 #include <stdint.h>
10 
12 
13 /**
14  * @brief A struct for setting the RGB mode for RGB shift registers.
15  */
17  /**
18  * @brief The position of the red output pin for 3-color LEDs.
19  * For the usual RGB configuration, this is 0.
20  */
21  const static uint8_t redBit; // = 0;
22  /**
23  * @brief The position of the green output pin for 3-color LEDs.
24  * For the usual RGB configuration, this is 1.
25  */
26  const static uint8_t greenBit; // = 1;
27  /**
28  * @brief The position of the blue output pin for 3-color LEDs.
29  * For the usual RGB configuration, this is 2.
30  */
31  const static uint8_t blueBit; // = 2;
32 };
33 
35 
Warnings.hpp
AH::ShiftRegisterOutRGB::redBit
const static uint8_t redBit
The position of the red output pin for 3-color LEDs.
Definition: ShiftRegisterOutRGB.hpp:21
SettingsWrapper.hpp
AH_DIAGNOSTIC_POP
#define AH_DIAGNOSTIC_POP()
Definition: Warnings.hpp:17
AH::ShiftRegisterOutRGB::blueBit
const static uint8_t blueBit
The position of the blue output pin for 3-color LEDs.
Definition: ShiftRegisterOutRGB.hpp:31
AH_DIAGNOSTIC_WERROR
#define AH_DIAGNOSTIC_WERROR()
Definition: Warnings.hpp:16
AH::ShiftRegisterOutRGB::greenBit
const static uint8_t greenBit
The position of the green output pin for 3-color LEDs.
Definition: ShiftRegisterOutRGB.hpp:26
AH::ShiftRegisterOutRGB
A struct for setting the RGB mode for RGB shift registers.
Definition: ShiftRegisterOutRGB.hpp:16
BEGIN_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
Definition: AH/Settings/NamespaceSettings.hpp:9
END_AH_NAMESPACE
#define END_AH_NAMESPACE
Definition: AH/Settings/NamespaceSettings.hpp:10