Keymap introspection for Dip Switches (#22543)
This commit is contained in:
parent
d85f954d30
commit
4682226e20
11 changed files with 138 additions and 1 deletions
|
@ -46,3 +46,10 @@ void dip_switch_read(bool forced);
|
|||
|
||||
void dip_switch_init(void);
|
||||
void dip_switch_task(void);
|
||||
|
||||
#ifdef DIP_SWITCH_MAP_ENABLE
|
||||
# define NUM_DIP_STATES 2
|
||||
# define DIP_SWITCH_OFF_ON(off, on) \
|
||||
{ (off), (on) }
|
||||
extern const uint16_t dip_switch_map[NUM_DIP_SWITCHES][NUM_DIP_STATES];
|
||||
#endif // DIP_SWITCH_MAP_ENABLE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue