1
0
Fork 0

[Keyboard] Update default keymaps to use layer_state_t (#7444)

* Update default keymaps to use `layer_state_t`

* Convert binon32 as get_highest_layer in default keymaps
This commit is contained in:
Drashna Jael're 2019-11-21 22:40:29 -08:00 committed by James Young
parent f0a9c10b6d
commit 6cf574396a
34 changed files with 44 additions and 47 deletions

View file

@ -50,8 +50,8 @@ KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
};
/* Layer based ilumination, just binary */
uint32_t layer_state_set_user(uint32_t state) {
switch (biton32(state)) {
layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) {
case _FNONE:
palSetPad(GPIOA, 0); //OFF Color A
palClearPad(GPIOA, 1); //ON Color B