Keymap introspection for Dip Switches (#22543)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user