Struct SYN_DipSwitch¶
DIP Switch Context.
#include <syn_dipswitch.h>
Public Attributes¶
| Type | Name |
|---|---|
| bool | active_low |
| bool | changed |
| uint8_t | count |
| uint32_t | current_value |
| SYN_GPIO_Pin | pins |
| uint32_t | previous_value |
Public Attributes Documentation¶
variable active_low¶
True if switch ON grounds input pin
variable changed¶
True if value changed since last read
variable count¶
Number of configured switch pins
variable current_value¶
Packed binary integer value
variable pins¶
Array of GPIO pins
variable previous_value¶
Previously read value
The documentation for this class was generated from the following file src/syntropic/input/syn_dipswitch.h