瀏覽代碼

Fix permanently on capslock led on Atom47 (#4452)

Maarten Dekkers 6 年之前
父節點
當前提交
f03fd95000
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      keyboards/atom47/rev2/rev2.c
  2. 3 0
      keyboards/atom47/rev3/rev3.c

+ 3 - 0
keyboards/atom47/rev2/rev2.c

@@ -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 - 0
keyboards/atom47/rev3/rev3.c

@@ -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) {