Skip to content

Commit

Permalink
Fix permanently on capslock led on Atom47 (#4452)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarten Dekkers authored and mechmerlin committed Nov 19, 2018
1 parent e069009 commit f03fd95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions keyboards/atom47/rev2/rev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ void matrix_scan_kb(void) {
void led_init_ports(void) {
// * Set our LED pins as output
DDRB &= ~(1<<5);

//Set output high, so the capslock led is off
PORTB |= (1 << 5);
}

void led_set_kb(uint8_t usb_led) {
Expand Down
3 changes: 3 additions & 0 deletions keyboards/atom47/rev3/rev3.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ void matrix_scan_kb(void) {
void led_init_ports(void) {
// * Set our LED pins as output
DDRE |= (1 << 6);

//Set output high, so the capslock led is off
PORTE |= (1 << 6);
}

void led_set_kb(uint8_t usb_led) {
Expand Down

0 comments on commit f03fd95

Please sign in to comment.