Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

annepro2: match default keymap to stock keycaps #16724

Merged
merged 6 commits into from
Apr 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
bwisn committed Mar 29, 2022
commit b0a826f2ada48d2cd69c2ef8193d332752af1c96
10 changes: 9 additions & 1 deletion keyboards/annepro2/annepro2.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ static const SerialConfig ble_uart_config = {

static uint8_t led_mcu_wakeup[11] = {0x7b, 0x10, 0x43, 0x10, 0x03, 0x00, 0x00, 0x7d, 0x02, 0x01, 0x02};

static uint8_t led_enabled = 1;

ble_capslock_t ble_capslock = {._dummy = {0}, .caps_lock = false};

#ifdef RGB_MATRIX_ENABLE
Expand Down Expand Up @@ -264,7 +266,13 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
rgb_matrix_decrease_speed();
return false;
} else {
rgb_matrix_toggle();
if (led_enabled) {
ap2_led_disable();
led_enabled = 0;
} else {
ap2_led_enable();
led_enabled = 1;
}
return true;
}
}
Expand Down