Skip to content

Commit

Permalink
Merge pull request qmk#7 from JcdeA/keyboard-annepro2
Browse files Browse the repository at this point in the history
add custom keycodes to switch led profiles
  • Loading branch information
Codetector1374 authored Aug 21, 2020
2 parents 81e4e56 + 839111c commit 41da6b1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions keyboards/annepro2/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ enum anne_pro_layers {
enum custom_keys {
KC_AP_LED_ON = AP2_SAFE_RANGE,
KC_AP_LED_OFF,
KC_AP_LED_NEXT_PROFILE,
KC_AP_LED_PREV_PROFILE
};
/*
* Layer _BASE_LAYER
Expand Down Expand Up @@ -121,6 +123,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
annepro2LedNextProfile();
}
return false;
case KC_AP_LED_NEXT_PROFILE:
if (record->event.pressed)
annepro2LedNextProfile();
return false;
case KC_AP_LED_PREV_PROFILE:
if (record->event.pressed)
annepro2LedPrevProfile();
return false;
default:
break;
}
Expand Down

0 comments on commit 41da6b1

Please sign in to comment.