JBWOPR
Loading...
Searching...
No Matches
DEFCON related methods

Functions

Adafruit_NeoPixel * JBWoprDevice::getDefconLeds ()
 Get DEFCON LEDs.
 
virtual void JBWoprDevice::defconLedsSetState (bool state)
 Set DEFCON state.
 
virtual void JBWoprDevice::defconLedsSetBrightness (uint8_t brightness)
 Set DEFCON LED's brightness level.
 
virtual void JBWoprDevice::defconLedsSetDefconLevel (JBDefconLevel level)
 Set DEFCON level.
 
virtual void JBWoprDevice::defconLedsSetColor (uint32_t color)
 Set all DEFCON LED's color.
 
virtual void JBWoprDevice::defconLedsClear ()
 Clear all DEFCON LEDs.
 
virtual void JBWoprDevice::defconLedSetColor (JBDefconLevel level, uint32_t color)
 Set individual DEFCON LED's color.
 
virtual void JBWoprDevice::defconLedSetDefconStateColor (JBDefconLevel level, uint32_t color)
 Set color for a DEFCON level.
 
void JBWoprMqttDevice::defconLedsSetState (bool state) override
 DEFCON LEDs set state.
 
void JBWoprMqttDevice::defconLedsSetDefconLevel (JBDefconLevel level) override
 DEFCON LEDs set DEFCON level.
 
void JBWoprMqttDevice::defconLedsSetColor (uint32_t color) override
 DEFCON LEDs set color.
 
void JBWoprMqttDevice::defconLedsSetBrightness (uint8_t brightness) override
 DEFCON LEDs set brightness.
 
void JBWoprMqttDevice::defconLedSetColor (JBDefconLevel level, uint32_t color)
 Set color of a specified DEFCON LED.
 

Detailed Description

Function Documentation

◆ defconLedSetColor() [1/2]

void JBWoprDevice::defconLedSetColor ( JBDefconLevel  level,
uint32_t  color 
)
virtual

Set individual DEFCON LED's color.

Parameters
levelDEFCON level LED
colorColor value

Reimplemented in JBWoprMqttDevice.

◆ defconLedSetColor() [2/2]

void JBWoprMqttDevice::defconLedSetColor ( JBDefconLevel  level,
uint32_t  color 
)
virtual

Set color of a specified DEFCON LED.

This method will set the color of a specified DEFCON LED. It will also publish the color to the MQTT broker.

Parameters
levelDEFCON level
colorColor

Reimplemented from JBWoprDevice.

◆ defconLedSetDefconStateColor()

void JBWoprDevice::defconLedSetDefconStateColor ( JBDefconLevel  level,
uint32_t  color 
)
virtual

Set color for a DEFCON level.

Parameters
levelDEFCON level
colorColor value

◆ defconLedsSetBrightness() [1/2]

void JBWoprDevice::defconLedsSetBrightness ( uint8_t  brightness)
virtual

Set DEFCON LED's brightness level.

Parameters
brightnessBrightness value, 0 - 100

Reimplemented in JBWoprMqttDevice.

◆ defconLedsSetBrightness() [2/2]

void JBWoprMqttDevice::defconLedsSetBrightness ( uint8_t  brightness)
overridevirtual

DEFCON LEDs set brightness.

This method will set the brightness for the DEFCON LEDs. It will also publish the brightness to the MQTT broker.

Parameters
brightnessBrightness

Reimplemented from JBWoprDevice.

◆ defconLedsSetColor() [1/2]

void JBWoprDevice::defconLedsSetColor ( uint32_t  color)
virtual

Set all DEFCON LED's color.

Parameters
colorColor value

Reimplemented in JBWoprMqttDevice.

◆ defconLedsSetColor() [2/2]

void JBWoprMqttDevice::defconLedsSetColor ( uint32_t  color)
overridevirtual

DEFCON LEDs set color.

This method will set the color for the DEFCON LEDs. It will also publish the color to the MQTT broker.

Parameters
colorColor

Reimplemented from JBWoprDevice.

◆ defconLedsSetDefconLevel() [1/2]

void JBWoprDevice::defconLedsSetDefconLevel ( JBDefconLevel  level)
virtual

Set DEFCON level.

Parameters
levelDEFCON level

Reimplemented in JBWoprMqttDevice.

◆ defconLedsSetDefconLevel() [2/2]

void JBWoprMqttDevice::defconLedsSetDefconLevel ( JBDefconLevel  level)
overridevirtual

DEFCON LEDs set DEFCON level.

This method will set the DEFCON level for the DEFCON LEDs. It will also publish the DEFCON level to the MQTT broker.

Parameters
levelDEFCON level

Reimplemented from JBWoprDevice.

◆ defconLedsSetState() [1/2]

void JBWoprDevice::defconLedsSetState ( bool  state)
virtual

Set DEFCON state.

Parameters
stateTrue to turn DEFCON LEDs on, false to turn them off

Reimplemented in JBWoprMqttDevice.

◆ defconLedsSetState() [2/2]

void JBWoprMqttDevice::defconLedsSetState ( bool  state)
overridevirtual

DEFCON LEDs set state.

This method will set the state for the DEFCON LEDs. It will also publish the state to the MQTT broker.

Parameters
stateState

Reimplemented from JBWoprDevice.

◆ getDefconLeds()

Adafruit_NeoPixel * JBWoprDevice::getDefconLeds ( )

Get DEFCON LEDs.

Returns
Defcon LEDs