API Documentation v0.0.1
|
Specialized class for radar switches with pull-to-unlock functionality. More...
#include <5A7A1-SNSR_PANEL.h>
Public Member Functions | |
SwitchRadar (const char *msg, const char *pullMsg, char pullPositionNumber, const byte *pins, char numberOfPins, bool reverse=false, unsigned long debounceDelay=50) | |
void | SetControl (const char *msg, const char *pullMsg) |
void | resetThisState () |
void | pollThisInput () |
Specialized class for radar switches with pull-to-unlock functionality.
Extends the debounce logic by implementing additional "pull" logic for radar switches that have a lock or emergency position that requires a pull action before rotating.
Definition at line 164 of file 5A7A1-SNSR_PANEL.h.
|
inline |
Constructor for initializing a radar switch with debounce and pull-to-unlock logic.
msg | DCS BIOS message for the switch state. |
pullMsg | DCS BIOS message for the pull action. |
pullPositionNumber | Switch position number requiring a pull action. |
pins | Array of physical pin numbers for switch positions. |
numberOfPins | Number of positions (pins) on the switch. |
reverse | Set to true to reverse the reading logic (for normally high switches). |
debounceDelay | Debounce time in milliseconds. |
Definition at line 286 of file 5A7A1-SNSR_PANEL.h.
References debounceDelay, and pins.
|
inline |
Sets or changes the DCS BIOS messages for the switch and pull actions.
msg | New DCS BIOS message for the switch state. |
pullMsg | New DCS BIOS message for the pull action. |
Definition at line 308 of file 5A7A1-SNSR_PANEL.h.
|
inline |
Public interface to reset the state of the switch.
Definition at line 316 of file 5A7A1-SNSR_PANEL.h.
|
inline |
Public interface to check the input state of the switch and apply debounce and pull logic.
Definition at line 323 of file 5A7A1-SNSR_PANEL.h.
Referenced by loop().