]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
fixed clueboard LED pin assignments and matrix documentation
authorRuiqi Mao <ruiqim@gmail.com>
Mon, 11 Jul 2016 08:18:07 +0000 (01:18 -0700)
committerRuiqi Mao <ruiqim@gmail.com>
Mon, 11 Jul 2016 08:18:35 +0000 (01:18 -0700)
keyboards/clueboard/clueboard.c
keyboards/clueboard/rev1/rev1.c
keyboards/clueboard/rev2/rev2.c
keyboards/clueboard/rev2/rev2.h

index 13195bda6b05590c4febea926140cf61e7655b76..3435202ba1869a32607668a933da93cb5c0a158d 100644 (file)
@@ -1,17 +1 @@
 #include "clueboard.h"
-
-void led_init_ports() {
-    // * Set our LED pins as output
-    DDRB |= (1<<4);
-}
-
-void led_set_kb(uint8_t usb_led) {
-    DDRF |= (1<<0);
-    if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
-        // Turn capslock on
-        PORTF |= (1<<0);
-    } else {
-        // Turn capslock off
-        PORTF &= ~(1<<0);
-    }
-}
index 520a869e57baf485553473a7274f629c78b69790..90fc6956c96f4f7b99a417e7c103c5186c86125b 100644 (file)
@@ -1 +1,17 @@
 #include "rev1.h"
+
+void led_init_ports() {
+    // * Set our LED pins as output
+    DDRF |= (1<<0);
+}
+
+void led_set_kb(uint8_t usb_led) {
+    DDRF |= (1<<0);
+    if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
+        // Turn capslock on
+        PORTF |= (1<<0);
+    } else {
+        // Turn capslock off
+        PORTF &= ~(1<<0);
+    }
+}
index 7a8ec368e63cdc89f441df987976f46aa2f6fba9..1a35b87b8409ff32e19d327d6fe8508762088cdd 100644 (file)
@@ -45,3 +45,19 @@ void backlight_set(uint8_t level) {
         PORTD &= ~(1<<4); // Arrows
     }
 }
+
+void led_init_ports() {
+    // * Set our LED pins as output
+    DDRB |= (1<<4);
+}
+
+void led_set_kb(uint8_t usb_led) {
+    DDRB |= (1<<4);
+    if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
+        // Turn capslock on
+        PORTB |= (1<<4);
+    } else {
+        // Turn capslock off
+        PORTB &= ~(1<<4);
+    }
+}
index 912de405da34195c019b296e3aa627f65fd9f0a9..2e9cb9dc2e9e7e34eb104fa52db64fe0cc20ac02 100644 (file)
@@ -13,7 +13,7 @@
  * |------------------------------------------------------------.
  * |  30| 31| 32| 33| 34| 35| 36| 37| 80| 81| 82| 83| 84|  85|86|
  * |------------------------------------------------------------------.
- * |  40| 41|  42|  43|   45|       46|   90|  91|  92| 93| 94| 95| 96|
+ * |  40| 41|  42|  43|   45|       46|   90|  92|  93| 94| 95| 96| 97|
  * `------------------------------------------------------------------'
  * ,-----------------------------------------------------------.  ,---.
  * |  `|  1|  2|  3|  4|  5|  6|  7|  8|  9|  0|  -|  =|Yen| BS|  |Ins|