diff options
author | Alex Ong <the.onga@gmail.com> | 2019-01-26 01:36:28 +0100 |
---|---|---|
committer | Alex Ong <the.onga@gmail.com> | 2019-01-26 01:36:28 +0100 |
commit | d977daa8dc9136746425f9e1414e1f93cb161877 (patch) | |
tree | 209ab8082580e5fdf37f1a8b7c1169250b7548c0 /keyboards/clueboard/2x1800/2x1800.c | |
parent | 47c91fc7f75ae0a477e55b687aa0fc30da0a283c (diff) | |
parent | 0306e487e2cd6a77ad840d0a441b478747b7ccd0 (diff) | |
download | qmk_firmware-d977daa8dc9136746425f9e1414e1f93cb161877.tar.gz qmk_firmware-d977daa8dc9136746425f9e1414e1f93cb161877.tar.xz |
Merge branch 'master' of https://github.com/qmk/qmk_firmware
Diffstat (limited to 'keyboards/clueboard/2x1800/2x1800.c')
-rw-r--r-- | keyboards/clueboard/2x1800/2x1800.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/keyboards/clueboard/2x1800/2x1800.c b/keyboards/clueboard/2x1800/2x1800.c index 4ad78899f..09c90adbc 100644 --- a/keyboards/clueboard/2x1800/2x1800.c +++ b/keyboards/clueboard/2x1800/2x1800.c @@ -21,10 +21,6 @@ void matrix_init_kb(void) { DDRB |= (1<<5); // Capslock DDRB |= (1<<6); // Scroll Lock - // JTAG disable for PORT F. write JTD bit twice within four cycles. - MCUCR |= (1<<JTD); - MCUCR |= (1<<JTD); - // Run the keymap level init matrix_init_user(); } @@ -38,25 +34,24 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { } void led_set_kb(uint8_t usb_led) { + // Toggle numlock as needed if (usb_led & (1<<USB_LED_NUM_LOCK)) { - // Turn numlock on PORTB |= (1<<4); } else { - // Turn numlock off PORTB &= ~(1<<4); } + + // Toggle capslock as needed if (usb_led & (1<<USB_LED_CAPS_LOCK)) { - // Turn capslock on PORTB |= (1<<5); } else { - // Turn capslock off PORTB &= ~(1<<5); } + + // Toggle scrolllock as needed if (usb_led & (1<<USB_LED_SCROLL_LOCK)) { - // Turn scroll lock on PORTB |= (1<<6); } else { - // Turn scroll lock off PORTB &= ~(1<<6); } } |