![]() |
RSeries astromech firmware
|
#include <body/DataPanel.h>
DataPanel controller.
Inheritance diagram for DataPanel:
Collaboration diagram for DataPanel:Public Types | |
| enum | EffectValue { kNormalVal = 0 } |
| enum | Sequence { kNormal = 0, kDisabled = 1, kFlicker = 2 } |
Public Member Functions | |
| DataPanel (LedControl &ledControl) | |
| Constructor. More... | |
| void | selectEffect (long inputNum) |
| Select the specified effect using a 32-bit integer. More... | |
| void | setSequence (Sequence seq=kNormal, uint8_t speedScale=0, uint8_t numSeconds=0) |
| Select the specified effect sequence. More... | |
| virtual void | setup () override |
| Perform any initialzation not possible in the constructor. More... | |
| virtual void | animate () override |
| Perform a single frame of LED animation based on the selected sequence. More... | |
| virtual void | handleCommand (const char *cmd) override |
| ChargeBayIndicator Commands start with 'DP'. More... | |
| void | setYellowBlock (byte top, byte bottom) |
| Set the yellow block LEDs. More... | |
| void | setGreenBlock (byte top, byte bottom) |
| Set the green block LEDs. More... | |
| void | setRed1Led (bool on) |
| Set the Red #1 LED. More... | |
| void | setRed2Led (bool on) |
| Set the Red #2 LED. More... | |
| void | setBottomLed (byte top, byte bottom) |
| Set the bottom LEDs. More... | |
| void | setBlueLed (byte pattern) |
| Set the blue LEDs. More... | |
| void | setBargraph (byte value) |
| Set the bargraph height. More... | |
| byte | getBargraph () |
| Get the current bargraph height. More... | |
Public Member Functions inherited from AnimatedEvent | |
| AnimatedEvent () | |
| Default Constructor. More... | |
| void | setLoopDoneCallback (AnimatedLoopDone loopProc) |
Additional Inherited Members | |
Static Public Member Functions inherited from AnimatedEvent | |
| static void | process () |
| Calls animate() for each created AnimatedEvent subclass. More... | |
| enum DataPanel::Sequence |
|
inline |
Constructor.
|
inlineoverridevirtual |
Perform a single frame of LED animation based on the selected sequence.
Implements AnimatedEvent.
|
inline |
Get the current bargraph height.
|
inlineoverridevirtual |
ChargeBayIndicator Commands start with 'DP'.
Implements CommandEvent.
|
inline |
Select the specified effect using a 32-bit integer.
|
inline |
Set the bargraph height.
0 off 1 green 2 green, green 3 green, green, yellow 4 green, green, yellow, yellow 5 green, green, yellow, yellow, red 6 green, green, yellow, yellow, red, red
|
inline |
Set the blue LEDs.
|
inline |
Set the bottom LEDs.
|
inline |
Set the green block LEDs.
|
inline |
Set the Red #1 LED.
|
inline |
Set the Red #2 LED.
|
inline |
Select the specified effect sequence.
|
inlineoverridevirtual |
Perform any initialzation not possible in the constructor.
Implements SetupEvent.
|
inline |
Set the yellow block LEDs.