[Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#24630)
* [Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#21881) * Apply suggestions from code review Co-authored-by: Nick Brassel <nick@tzarc.org> --------- Co-authored-by: Nebuleon <2391500+Nebuleon@users.noreply.github.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
parent
9e9b4acbde
commit
4a5bae51cd
14 changed files with 92 additions and 2 deletions
|
@ -92,6 +92,10 @@
|
|||
#define DF(layer) (QK_DEF_LAYER | ((layer)&0x1F))
|
||||
#define QK_DEF_LAYER_GET_LAYER(kc) ((kc)&0x1F)
|
||||
|
||||
// Set persistent default layer - 32 layer max
|
||||
#define PDF(layer) (QK_PERSISTENT_DEF_LAYER | ((layer)&0x1F))
|
||||
#define QK_PERSISTENT_DEF_LAYER_GET_LAYER(kc) ((kc)&0x1F)
|
||||
|
||||
// Toggle to layer - 32 layer max
|
||||
#define TG(layer) (QK_TOGGLE_LAYER | ((layer)&0x1F))
|
||||
#define QK_TOGGLE_LAYER_GET_LAYER(kc) ((kc)&0x1F)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue