API Documentation v0.0.1
Loading...
Searching...
No Matches
SelectJettPanel Class Reference
+ Inheritance diagram for SelectJettPanel:

Public Member Functions

int getLedCount () const override
 Gets the number of LEDs in this panel.
 
const LedgetLedTable () const override
 Gets the LED table for this panel.
 
- Public Member Functions inherited from Panel
virtual int getStartIndex () const
 Gets the start index of this panel on the LED strip.
 
virtual CRGB * getLedStrip () const
 Gets the LED strip for this panel.
 

Static Public Member Functions

static SelectJettPanelgetInstance (int startIndex=0, CRGB *ledStrip=nullptr)
 Gets the singleton instance of the SelectJettPanel class.
 

Additional Inherited Members

- Protected Member Functions inherited from Panel
 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 inherited from Panel
int panelStartIndex
 
int ledCount
 
const LedledTable
 
CRGB * ledStrip
 
uint16_t current_backl_brightness
 
uint16_t current_console_brightness
 
uint16_t current_flood_brightness
 
PanelnextPanel
 

Detailed Description

Definition at line 61 of file 4A3A1_SELECT_JETT_PANEL.h.

Member Function Documentation

◆ getInstance()

static SelectJettPanel * SelectJettPanel::getInstance ( int startIndex = 0,
CRGB * ledStrip = nullptr )
inlinestatic

Gets the singleton instance of the SelectJettPanel class.

Parameters
startIndexThe starting index for this panel's LEDs on the strip
ledStripPointer to the LED strip array
Returns
Pointer to the singleton instance
See also
This method is called by the main .ino file's addPanel() method to create the panel instance

Definition at line 70 of file 4A3A1_SELECT_JETT_PANEL.h.

70 {
71 if (!instance) {
72 instance = new SelectJettPanel(startIndex, ledStrip);
73 }
74 return instance;
75 }

◆ getLedCount()

int SelectJettPanel::getLedCount ( ) const
inlineoverridevirtual

Gets the number of LEDs in this panel.

Returns
The LED count

Reimplemented from Panel.

Definition at line 77 of file 4A3A1_SELECT_JETT_PANEL.h.

77 {
78 return SELECT_JETT_LED_COUNT;
79 }

◆ getLedTable()

const Led * SelectJettPanel::getLedTable ( ) const
inlineoverridevirtual

Gets the LED table for this panel.

Returns
Pointer to the LED table

Reimplemented from Panel.

Definition at line 81 of file 4A3A1_SELECT_JETT_PANEL.h.

81 {
82 return selectJettLedTable;
83 }

The documentation for this class was generated from the following file: