|
API Documentation v0.0.1
|
Public Member Functions | |
| Channel (uint8_t p, const char *pcb, CRGB *ledArray, uint16_t count) | |
| Constructor for the Channel class. | |
| void | initialize () |
| Initializes the LED strip with FastLED. | |
| template<typename PanelType > | |
| void | addPanel () |
| Adds a panel to the channel's linked list. | |
| uint8_t | getPin () const |
| Gets the pin number for this channel. | |
| const char * | getPcbName () const |
| Gets the PCB name for this channel. | |
| uint16_t | getLedCount () const |
| Gets the number of LEDs in this channel. | |
| CRGB * | getLeds () const |
| Gets the LED array for this channel. | |
| Panel * | getFirstPanel () const |
| Gets the first panel in the channel's linked list. | |
| uint8_t | getPanelCount () const |
| Gets the number of panels in this channel. | |
| void | updateInstrLights (uint16_t brightness, const CRGB &color=NVIS_GREEN_A) |
| Updates backlights for all panels in this channel. | |
| void | updateConsoleLights (uint16_t brightness, const CRGB &color=NVIS_GREEN_A) |
| Updates console lights for all panels in this channel. | |
| void | updateFloodLights (uint16_t brightness) |
| Updates flood lights for all panels in this channel. | |
| void | setAllLightsOff () |
| Turns off all lights in all panels of this channel and resets brightness state. | |
|
inline |
Constructor for the Channel class.
| p | Pin number for the LED strip |
| pcb | Name of the PCB this channel is connected to |
| ledArray | Pointer to the LED array |
| count | Number of LEDs in the strip |
Definition at line 54 of file Channel.h.
|
inline |
Initializes the LED strip with FastLED.
Definition at line 68 of file Channel.h.
|
inline |
Adds a panel to the channel's linked list.
| PanelType | The type of panel to add |
Definition at line 93 of file Channel.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Updates backlights for all panels in this channel.
| brightness | The brightness value to set |
| color | The color to set (defaults to NVIS_GREEN_A) |
Definition at line 166 of file Channel.h.
References Panel::setInstrLights().
Referenced by Board::fillSolid(), Board::processMode(), and Board::updateInstrumentLights().
|
inline |
Updates console lights for all panels in this channel.
| brightness | The brightness value to set |
| color | The color to set (defaults to NVIS_GREEN_A) |
Definition at line 180 of file Channel.h.
References Panel::setConsoleLights().
Referenced by Board::fillSolid(), Board::processMode(), and Board::updateConsoleLights().
|
inline |
Updates flood lights for all panels in this channel.
| brightness | The brightness value to set |
Definition at line 193 of file Channel.h.
References Panel::setFloodlights().
Referenced by Board::processMode(), and Board::updateFloodLights().
|
inline |
Turns off all lights in all panels of this channel and resets brightness state.
Definition at line 205 of file Channel.h.
References Panel::setAllLightsOff().
Referenced by Board::setAllLightsOff().