52 explicit LED(uint8_t controlPin);
53 LED(uint8_t controlPin,
bool pwmEnable);
54 LED(uint8_t controlPin, uint8_t groundPin,
bool pwmEnable =
false);
85 uint8_t
CalcPulseBrightness(uint8_t brightness, uint16_t period,
bool smooth =
false, uint8_t offBrightness = 0);
constexpr unsigned char PWM_MAX_BRIGHTNESS
Definition LED.h:38
constexpr unsigned PERIODDIVISOR
Definition LED.h:40
constexpr unsigned BLINK_SLOW_PERIOD_MS
Definition LED.h:33
constexpr unsigned char PWM_MIN_BRIGHTNESS
Definition LED.h:37
constexpr unsigned BLINK_FAST_PERIOD_MS
Definition LED.h:32
constexpr unsigned PULSE_FAST_PERIOD_MS
Definition LED.h:34
constexpr unsigned PULSE_SLOW_PERIOD_MS
Definition LED.h:35
Miscellaneous constants for the operator controller.
static bool GAMMA_INITIALIZED
Definition LED.h:79
void Initialize()
Definition LED.cpp:60
bool IsPWM() const
Definition LED.cpp:113
void SetPattern(LEDPattern newPattern)
Definition LED.cpp:105
uint8_t CalcPulseBrightness(uint8_t brightness, uint16_t period, bool smooth=false, uint8_t offBrightness=0)
Definition LED.cpp:177
LEDPattern
Definition LED.h:44
void On()
Definition LED.cpp:91
static uint8_t GAMMA[256]
Definition LED.h:78
bool GetIlluminated() const
Definition LED.cpp:101
LEDPattern m_pattern
Definition LED.h:75
const uint8_t m_controlPin
Definition LED.h:70
void SetPulse()
Definition LED.cpp:117
const uint8_t m_groundPin
Definition LED.h:71
bool m_illuminate
Definition LED.h:76
void Off()
Definition LED.cpp:96
void Update()
Definition LED.cpp:74
void SetFlash()
Definition LED.cpp:147
bool m_initialized
Definition LED.h:74
const bool m_pwmEnable
Definition LED.h:72
void SetSolid()
Definition LED.cpp:171
LEDPattern GetPattern() const
Definition LED.cpp:109