|
API Documentation v0.0.1
|
Inheritance diagram for Panel:Public Member Functions | |
| virtual int | getStartIndex () const |
| Gets the start index of this panel on the LED strip. | |
| virtual int | getLedCount () const |
| Gets the number of LEDs in this panel. | |
| virtual const Led * | getLedTable () const |
| Gets the LED table for this panel. | |
| virtual CRGB * | getLedStrip () const |
| Gets the LED strip for this panel. | |
Protected Member Functions | |
| Panel () | |
| Protected constructor to prevent direct instantiation. | |
| void | setInstrLights (uint16_t newValue, const CRGB &color=NVIS_GREEN_A) |
| Set the color of all instrument backlight LEDs. | |
| void | setConsoleLights (uint16_t newValue, const CRGB &color=NVIS_GREEN_A) |
| Sets the color of all console backlight LEDs. | |
| void | setIndicatorColor (LedRole role, const CRGB &color) |
| Sets the color of LEDs with a specific role. | |
| void | setFloodlights (uint16_t newValue) |
| Sets the brightness of floodlight LEDs. | |
| void | setAllLightsOff () |
| Turns off all lights in this panel, irrespective of their role, and resets brightness state. | |
Protected Attributes | |
| int | panelStartIndex |
| int | ledCount |
| const Led * | ledTable |
| CRGB * | ledStrip |
| uint16_t | current_backl_brightness |
| uint16_t | current_console_brightness |
| uint16_t | current_flood_brightness |
| Panel * | nextPanel |
Friends | |
| class | Channel |
|
inlineprotected |
Protected constructor to prevent direct instantiation.
Definition at line 75 of file Panel.h.
|
inlinevirtual |
Gets the start index of this panel on the LED strip.
Definition at line 47 of file Panel.h.
Referenced by setAllLightsOff(), setConsoleLights(), setFloodlights(), setIndicatorColor(), and setInstrLights().
|
inlinevirtual |
Gets the number of LEDs in this panel.
Reimplemented in LdgGearPanel, and SelectJettPanel.
Definition at line 53 of file Panel.h.
Referenced by setAllLightsOff(), setConsoleLights(), setFloodlights(), setIndicatorColor(), and setInstrLights().
|
inlinevirtual |
Gets the LED table for this panel.
Reimplemented in LdgGearPanel, and SelectJettPanel.
Definition at line 59 of file Panel.h.
Referenced by setAllLightsOff(), setConsoleLights(), setFloodlights(), setIndicatorColor(), and setInstrLights().
|
inlinevirtual |
Gets the LED strip for this panel.
Definition at line 65 of file Panel.h.
Referenced by setAllLightsOff(), setConsoleLights(), setFloodlights(), setIndicatorColor(), and setInstrLights().
|
inlineprotected |
Set the color of all instrument backlight LEDs.
| newValue | The new brightness value (0-65535) |
| color | The color to set (defaults to NVIS_GREEN_A) |
Definition at line 99 of file Panel.h.
References LedUpdateState::getInstance(), getLedCount(), getLedStrip(), getLedTable(), getStartIndex(), and LedUpdateState::setUpdateFlag().
Referenced by Channel::updateInstrLights().
|
inlineprotected |
Sets the color of all console backlight LEDs.
| newValue | The new brightness value (0-65535) |
| color | The color to set (defaults to NVIS_GREEN_A) |
Definition at line 130 of file Panel.h.
References LedUpdateState::getInstance(), getLedCount(), getLedStrip(), getLedTable(), getStartIndex(), and LedUpdateState::setUpdateFlag().
Referenced by Channel::updateConsoleLights().
|
inlineprotected |
Sets the color of LEDs with a specific role.
| role | The role of LEDs to update |
| color | The color to set |
Definition at line 156 of file Panel.h.
References LedUpdateState::getInstance(), getLedCount(), getLedStrip(), getLedTable(), getStartIndex(), and LedUpdateState::setUpdateFlag().
|
inlineprotected |
Sets the brightness of floodlight LEDs.
| newValue | The new brightness value (0-65535) |
Definition at line 175 of file Panel.h.
References LedUpdateState::getInstance(), getLedCount(), getLedStrip(), getLedTable(), getStartIndex(), and LedUpdateState::setUpdateFlag().
Referenced by Channel::updateFloodLights().
|
inlineprotected |
Turns off all lights in this panel, irrespective of their role, and resets brightness state.
Definition at line 201 of file Panel.h.
References LedUpdateState::getInstance(), getLedCount(), getLedStrip(), getLedTable(), getStartIndex(), and LedUpdateState::setUpdateFlag().
Referenced by Channel::setAllLightsOff().