Initial version of new code for layer switch is added.
This commit is contained in:
parent
93e33fb8f6
commit
4ae979f6ef
19 changed files with 592 additions and 495 deletions
|
@ -210,12 +210,12 @@ uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col)
|
|||
return KEYCODE(layer, row, col);
|
||||
}
|
||||
|
||||
uint8_t keymap_fn_layer(uint8_t fn_bits)
|
||||
uint8_t keymap_fn_layer(uint8_t index)
|
||||
{
|
||||
return pgm_read_byte(&fn_layer[biton(fn_bits)]);
|
||||
return pgm_read_byte(&fn_layer[index]);
|
||||
}
|
||||
|
||||
uint8_t keymap_fn_keycode(uint8_t fn_bits)
|
||||
uint8_t keymap_fn_keycode(uint8_t index)
|
||||
{
|
||||
return pgm_read_byte(&fn_keycode[(biton(fn_bits))]);
|
||||
return pgm_read_byte(&fn_keycode[index]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue