Skip to content

Commit

Permalink
Fix permanently on capslock led on Atom47 (qmk#4452)
Browse files Browse the repository at this point in the history
Maarten Dekkers authored and djthread committed Mar 17, 2019
1 parent cceb734 commit a02606b
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
@@ -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) {
3 changes: 3 additions & 0 deletions keyboards/atom47/rev3/rev3.c
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit a02606b

Please sign in to comment.