diff options
| -rw-r--r-- | keyboards/clueboard/17/17.c | 10 | ||||
| -rw-r--r-- | keyboards/clueboard/2x1800/2018/2018.c | 41 | ||||
| -rw-r--r-- | keyboards/clueboard/2x1800/2018/config.h | 4 | ||||
| -rw-r--r-- | keyboards/clueboard/60/config.h | 4 | ||||
| -rw-r--r-- | keyboards/clueboard/60/led.c | 12 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev1/config.h | 2 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev1/rev1.c | 16 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev2/config.h | 4 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev2/rev2.c | 30 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev3/config.h | 4 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev3/rev3.c | 30 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev4/rev4.c | 49 | ||||
| -rw-r--r-- | keyboards/clueboard/66_hotswap/prototype/config.h | 2 | ||||
| -rw-r--r-- | keyboards/clueboard/66_hotswap/prototype/prototype.c | 30 | ||||
| -rw-r--r-- | keyboards/clueboard/card/card.c | 28 |
15 files changed, 36 insertions, 230 deletions
diff --git a/keyboards/clueboard/17/17.c b/keyboards/clueboard/17/17.c index 9e8ca644e..44b55a323 100644 --- a/keyboards/clueboard/17/17.c +++ b/keyboards/clueboard/17/17.c | |||
| @@ -2,16 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | int pwm_level; | 3 | int pwm_level; |
| 4 | 4 | ||
| 5 | void matrix_init_kb(void) { | ||
| 6 | // put your keyboard start-up code here | ||
| 7 | // runs once when the firmware starts up | ||
| 8 | matrix_init_user(); | ||
| 9 | }; | ||
| 10 | |||
| 11 | void led_set_kb(uint8_t usb_led) { | ||
| 12 | print("led_set\n"); | ||
| 13 | } | ||
| 14 | |||
| 15 | void backlight_init_ports(void) { | 5 | void backlight_init_ports(void) { |
| 16 | // Set C7 to output | 6 | // Set C7 to output |
| 17 | DDRC |= (1<<7); | 7 | DDRC |= (1<<7); |
diff --git a/keyboards/clueboard/2x1800/2018/2018.c b/keyboards/clueboard/2x1800/2018/2018.c index 1745309ff..dee0c01b5 100644 --- a/keyboards/clueboard/2x1800/2018/2018.c +++ b/keyboards/clueboard/2x1800/2018/2018.c | |||
| @@ -14,44 +14,3 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "2018.h" | 16 | #include "2018.h" |
| 17 | |||
| 18 | void matrix_init_kb(void) { | ||
| 19 | // Set our LED pins as output | ||
| 20 | DDRB |= (1<<4); // Numlock | ||
| 21 | DDRB |= (1<<5); // Capslock | ||
| 22 | DDRB |= (1<<6); // Scroll Lock | ||
| 23 | |||
| 24 | // Run the keymap level init | ||
| 25 | matrix_init_user(); | ||
| 26 | } | ||
| 27 | |||
| 28 | void matrix_scan_kb(void) { | ||
| 29 | matrix_scan_user(); | ||
| 30 | } | ||
| 31 | |||
| 32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 33 | return process_record_user(keycode, record); | ||
| 34 | } | ||
| 35 | |||
| 36 | void led_set_kb(uint8_t usb_led) { | ||
| 37 | // Toggle numlock as needed | ||
| 38 | if (usb_led & (1<<USB_LED_NUM_LOCK)) { | ||
| 39 | PORTB |= (1<<4); | ||
| 40 | } else { | ||
| 41 | PORTB &= ~(1<<4); | ||
| 42 | } | ||
| 43 | |||
| 44 | // Toggle capslock as needed | ||
| 45 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||
| 46 | PORTB |= (1<<5); | ||
| 47 | } else { | ||
| 48 | PORTB &= ~(1<<5); | ||
| 49 | } | ||
| 50 | |||
| 51 | // Toggle scrolllock as needed | ||
| 52 | if (usb_led & (1<<USB_LED_SCROLL_LOCK)) { | ||
| 53 | PORTB |= (1<<6); | ||
| 54 | } else { | ||
| 55 | PORTB &= ~(1<<6); | ||
| 56 | } | ||
| 57 | } | ||
diff --git a/keyboards/clueboard/2x1800/2018/config.h b/keyboards/clueboard/2x1800/2018/config.h index af67b15b2..0c57b4324 100644 --- a/keyboards/clueboard/2x1800/2018/config.h +++ b/keyboards/clueboard/2x1800/2018/config.h | |||
| @@ -60,6 +60,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 60 | #define C4_AUDIO | 60 | #define C4_AUDIO |
| 61 | #define AUDIO_CLICKY | 61 | #define AUDIO_CLICKY |
| 62 | 62 | ||
| 63 | #define LED_NUM_LOCK_PIN B4 | ||
| 64 | #define LED_CAPS_LOCK_PIN B5 | ||
| 65 | #define LED_SCROLL_LOCK_PIN B6 | ||
| 66 | |||
| 63 | /* number of backlight levels */ | 67 | /* number of backlight levels */ |
| 64 | // #define BACKLIGHT_PIN B7 | 68 | // #define BACKLIGHT_PIN B7 |
| 65 | // #define BACKLIGHT_BREATHING | 69 | // #define BACKLIGHT_BREATHING |
diff --git a/keyboards/clueboard/60/config.h b/keyboards/clueboard/60/config.h index f0e157ff1..3f54d0a9d 100644 --- a/keyboards/clueboard/60/config.h +++ b/keyboards/clueboard/60/config.h | |||
| @@ -121,6 +121,8 @@ | |||
| 121 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | 121 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ |
| 122 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | 122 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 |
| 123 | 123 | ||
| 124 | /* Backlight configuration | 124 | #define LED_CAPS_LOCK_PIN B7 |
| 125 | |||
| 126 | /* Backlight configuration | ||
| 125 | */ | 127 | */ |
| 126 | #define BACKLIGHT_LEVELS 1 | 128 | #define BACKLIGHT_LEVELS 1 |
diff --git a/keyboards/clueboard/60/led.c b/keyboards/clueboard/60/led.c index 91a2c537d..20756f1e7 100644 --- a/keyboards/clueboard/60/led.c +++ b/keyboards/clueboard/60/led.c | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include "hal.h" | 18 | #include "hal.h" |
| 19 | #include "led.h" | ||
| 20 | #include "printf.h" | 19 | #include "printf.h" |
| 21 | 20 | ||
| 22 | #ifdef BACKLIGHT_ENABLE | 21 | #ifdef BACKLIGHT_ENABLE |
| @@ -40,14 +39,3 @@ void backlight_set(uint8_t level) { | |||
| 40 | } | 39 | } |
| 41 | } | 40 | } |
| 42 | #endif | 41 | #endif |
| 43 | |||
| 44 | void led_set_kb(uint8_t usb_led) { | ||
| 45 | printf("led_set_kb(%d)\n", usb_led); | ||
| 46 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||
| 47 | // Turn capslock on | ||
| 48 | palSetPad(GPIOB, 7); | ||
| 49 | } else { | ||
| 50 | // Turn capslock off | ||
| 51 | palClearPad(GPIOB, 7); | ||
| 52 | } | ||
| 53 | } | ||
diff --git a/keyboards/clueboard/66/rev1/config.h b/keyboards/clueboard/66/rev1/config.h index 9db64fbd4..6b61ca4d1 100644 --- a/keyboards/clueboard/66/rev1/config.h +++ b/keyboards/clueboard/66/rev1/config.h | |||
| @@ -50,6 +50,8 @@ | |||
| 50 | //#define NO_ACTION_MACRO | 50 | //#define NO_ACTION_MACRO |
| 51 | //#define NO_ACTION_FUNCTION | 51 | //#define NO_ACTION_FUNCTION |
| 52 | 52 | ||
| 53 | #define LED_CAPS_LOCK_PIN F0 | ||
| 54 | |||
| 53 | /* Underlight configuration | 55 | /* Underlight configuration |
| 54 | */ | 56 | */ |
| 55 | #define RGB_DI_PIN B2 | 57 | #define RGB_DI_PIN B2 |
diff --git a/keyboards/clueboard/66/rev1/rev1.c b/keyboards/clueboard/66/rev1/rev1.c index 90fc6956c..520a869e5 100644 --- a/keyboards/clueboard/66/rev1/rev1.c +++ b/keyboards/clueboard/66/rev1/rev1.c | |||
| @@ -1,17 +1 @@ | |||
| 1 | #include "rev1.h" | #include "rev1.h" | |
| 2 | |||
| 3 | void led_init_ports() { | ||
| 4 | // * Set our LED pins as output | ||
| 5 | DDRF |= (1<<0); | ||
| 6 | } | ||
| 7 | |||
| 8 | void led_set_kb(uint8_t usb_led) { | ||
| 9 | DDRF |= (1<<0); | ||
| 10 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||
| 11 | // Turn capslock on | ||
| 12 | PORTF |= (1<<0); | ||
| 13 | } else { | ||
| 14 | // Turn capslock off | ||
| 15 | PORTF &= ~(1<<0); | ||
| 16 | } | ||
| 17 | } | ||
diff --git a/keyboards/clueboard/66/rev2/config.h b/keyboards/clueboard/66/rev2/config.h index f11cfe82f..a1e4804ca 100644 --- a/keyboards/clueboard/66/rev2/config.h +++ b/keyboards/clueboard/66/rev2/config.h | |||
| @@ -49,7 +49,9 @@ | |||
| 49 | //#define NO_ACTION_MACRO | 49 | //#define NO_ACTION_MACRO |
| 50 | //#define NO_ACTION_FUNCTION | 50 | //#define NO_ACTION_FUNCTION |
| 51 | 51 | ||
| 52 | /* Backlight configuration | 52 | #define LED_CAPS_LOCK_PIN B4 |
| 53 | |||
| 54 | /* Backlight configuration | ||
| 53 | */ | 55 | */ |
| 54 | #define BACKLIGHT_LEVELS 1 | 56 | #define BACKLIGHT_LEVELS 1 |
| 55 | 57 | ||
diff --git a/keyboards/clueboard/66/rev2/rev2.c b/keyboards/clueboard/66/rev2/rev2.c index d676b6d5f..a533c550a 100644 --- a/keyboards/clueboard/66/rev2/rev2.c +++ b/keyboards/clueboard/66/rev2/rev2.c | |||
| @@ -1,20 +1,6 @@ | |||
| 1 | #include "rev2.h" | 1 | #include "rev2.h" |
| 2 | #include <avr/io.h> | ||
| 3 | #include "backlight.h" | ||
| 4 | #include "print.h" | 2 | #include "print.h" |
| 5 | 3 | ||
| 6 | void matrix_init_kb(void) { | ||
| 7 | // put your keyboard start-up code here | ||
| 8 | // runs once when the firmware starts up | ||
| 9 | matrix_init_user(); | ||
| 10 | led_init_ports(); | ||
| 11 | } | ||
| 12 | |||
| 13 | |||
| 14 | void matrix_scan_kb(void) { | ||
| 15 | matrix_scan_user(); | ||
| 16 | } | ||
| 17 | |||
| 18 | void backlight_init_ports(void) { | 4 | void backlight_init_ports(void) { |
| 19 | print("init_backlight_pin()\n"); | 5 | print("init_backlight_pin()\n"); |
| 20 | // Set our LED pins as output | 6 | // Set our LED pins as output |
| @@ -41,19 +27,3 @@ void backlight_set(uint8_t level) { | |||
| 41 | PORTD &= ~(1<<4); // Arrows | 27 | PORTD &= ~(1<<4); // Arrows |
| 42 | } | 28 | } |
| 43 | } | 29 | } |
| 44 | |||
| 45 | void led_init_ports() { | ||
| 46 | // * Set our LED pins as output | ||
| 47 | DDRB |= (1<<4); | ||
| 48 | } | ||
| 49 | |||
| 50 | void led_set_kb(uint8_t usb_led) { | ||
| 51 | DDRB |= (1<<4); | ||
| 52 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||
| 53 | // Turn capslock on | ||
| 54 | PORTB |= (1<<4); | ||
| 55 | } else { | ||
| 56 | // Turn capslock off | ||
| 57 | PORTB &= ~(1<<4); | ||
| 58 | } | ||
| 59 | } | ||
diff --git a/keyboards/clueboard/66/rev3/config.h b/keyboards/clueboard/66/rev3/config.h index bbbd82a1c..2d063d4e6 100644 --- a/keyboards/clueboard/66/rev3/config.h +++ b/keyboards/clueboard/66/rev3/config.h | |||
| @@ -49,7 +49,9 @@ | |||
| 49 | //#define NO_ACTION_MACRO | 49 | //#define NO_ACTION_MACRO |
| 50 | //#define NO_ACTION_FUNCTION | 50 | //#define NO_ACTION_FUNCTION |
| 51 | 51 | ||
| 52 | /* Backlight configuration | 52 | #define LED_CAPS_LOCK_PIN B4 |
| 53 | |||
| 54 | /* Backlight configuration | ||
| 53 | */ | 55 | */ |
| 54 | #define BACKLIGHT_LEVELS 1 | 56 | #define BACKLIGHT_LEVELS 1 |
| 55 | 57 | ||
diff --git a/keyboards/clueboard/66/rev3/rev3.c b/keyboards/clueboard/66/rev3/rev3.c index 195a21a9e..7ec8dcb68 100644 --- a/keyboards/clueboard/66/rev3/rev3.c +++ b/keyboards/clueboard/66/rev3/rev3.c | |||
| @@ -1,20 +1,6 @@ | |||
| 1 | #include "rev3.h" | 1 | #include "rev3.h" |
| 2 | #include <avr/io.h> | ||
| 3 | #include "backlight.h" | ||
| 4 | #include "print.h" | 2 | #include "print.h" |
| 5 | 3 | ||
| 6 | void matrix_init_kb(void) { | ||
| 7 | // put your keyboard start-up code here | ||
| 8 | // runs once when the firmware starts up | ||
| 9 | matrix_init_user(); | ||
| 10 | led_init_ports(); | ||
| 11 | } | ||
| 12 | |||
| 13 | |||
| 14 | void matrix_scan_kb(void) { | ||
| 15 | matrix_scan_user(); | ||
| 16 | } | ||
| 17 | |||
| 18 | void backlight_init_ports(void) { | 4 | void backlight_init_ports(void) { |
| 19 | print("init_backlight_pin()\n"); | 5 | print("init_backlight_pin()\n"); |
| 20 | // Set our LED pins as output | 6 | // Set our LED pins as output |
| @@ -41,19 +27,3 @@ void backlight_set(uint8_t level) { | |||
| 41 | PORTD &= ~(1<<4); // Arrows | 27 | PORTD &= ~(1<<4); // Arrows |
| 42 | } | 28 | } |
| 43 | } | 29 | } |
| 44 | |||
| 45 | void led_init_ports() { | ||
| 46 | // * Set our LED pins as output | ||
| 47 | DDRB |= (1<<4); | ||
| 48 | } | ||
| 49 | |||
| 50 | void led_set_kb(uint8_t usb_led) { | ||
| 51 | DDRB |= (1<<4); | ||
| 52 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||
| 53 | // Turn capslock on | ||
| 54 | PORTB |= (1<<4); | ||
| 55 | } else { | ||
| 56 | // Turn capslock off | ||
| 57 | PORTB &= ~(1<<4); | ||
| 58 | } | ||
| 59 | } | ||
diff --git a/keyboards/clueboard/66/rev4/rev4.c b/keyboards/clueboard/66/rev4/rev4.c index 69eb48183..00d4f325e 100644 --- a/keyboards/clueboard/66/rev4/rev4.c +++ b/keyboards/clueboard/66/rev4/rev4.c | |||
| @@ -1,43 +1,30 @@ | |||
| 1 | #include "rev4.h" | 1 | #include "rev4.h" |
| 2 | //#include "backlight.h" | ||
| 3 | 2 | ||
| 4 | void matrix_init_kb(void) { | 3 | void matrix_init_kb(void) { |
| 5 | // put your keyboard start-up code here | ||
| 6 | // runs once when the firmware starts up | ||
| 7 | matrix_init_user(); | ||
| 8 | led_init_ports(); | 4 | led_init_ports(); |
| 5 | |||
| 6 | matrix_init_user(); | ||
| 9 | } | 7 | } |
| 10 | 8 | ||
| 11 | void led_init_ports() { | 9 | void led_init_ports() { |
| 12 | // Set our LED pins as output | 10 | // Set our LED pins as output |
| 13 | palSetPadMode(GPIOB, 13, PAL_MODE_OUTPUT_PUSHPULL); // LED1 | 11 | setPinOutput(B13); // LED1 |
| 14 | palClearPad(GPIOB, 13); | 12 | writePinLow(B13); |
| 15 | palSetPadMode(GPIOB, 14, PAL_MODE_OUTPUT_PUSHPULL); // LED2 | 13 | setPinOutput(B14); // LED2 |
| 16 | palClearPad(GPIOB, 14); | 14 | writePinLow(B14); |
| 17 | palSetPadMode(GPIOA, 8, PAL_MODE_OUTPUT_PUSHPULL); // LED3 | 15 | setPinOutput(A8); // LED3 |
| 18 | palClearPad(GPIOA, 8); | 16 | writePinLow(A8); |
| 19 | palSetPadMode(GPIOA, 0, PAL_MODE_OUTPUT_PUSHPULL); // Capslock LED | 17 | setPinOutput(A0); // Capslock LED |
| 20 | palClearPad(GPIOA, 0); | 18 | writePinLow(A0); |
| 21 | } | 19 | } |
| 22 | 20 | ||
| 23 | void led_set_kb(uint8_t usb_led) { | 21 | bool led_update_kb(led_t led_state) { |
| 24 | if (usb_led & (1<<USB_LED_NUM_LOCK)) { | 22 | bool res = led_update_user(led_state); |
| 25 | palSetPad(GPIOB, 13); // LED1 | 23 | if(res) { |
| 26 | } else { | 24 | writePin(B13, led_state.num_lock); |
| 27 | palClearPad(GPIOB, 13); // LED1 | 25 | writePin(A0, led_state.caps_lock); |
| 28 | } | 26 | writePin(B14, led_state.caps_lock); |
| 29 | 27 | writePin(A8, led_state.scroll_lock); | |
| 30 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||
| 31 | palSetPad(GPIOA, 0); // Capslock LED | ||
| 32 | palSetPad(GPIOB, 14); // LED2 | ||
| 33 | } else { | ||
| 34 | palClearPad(GPIOA, 0); // Capslock LED | ||
| 35 | palClearPad(GPIOB, 14); // LED2 | ||
| 36 | } | ||
| 37 | |||
| 38 | if (usb_led & (1<<USB_LED_SCROLL_LOCK)) { | ||
| 39 | palSetPad(GPIOA, 8); // LED3 | ||
| 40 | } else { | ||
| 41 | palClearPad(GPIOA, 8); // LED3 | ||
| 42 | } | 28 | } |
| 29 | return res; | ||
| 43 | } | 30 | } |
diff --git a/keyboards/clueboard/66_hotswap/prototype/config.h b/keyboards/clueboard/66_hotswap/prototype/config.h index 7679d08e5..f6ab6ba53 100644 --- a/keyboards/clueboard/66_hotswap/prototype/config.h +++ b/keyboards/clueboard/66_hotswap/prototype/config.h | |||
| @@ -32,6 +32,8 @@ | |||
| 32 | */ | 32 | */ |
| 33 | #define NO_ACTION_TAPPING | 33 | #define NO_ACTION_TAPPING |
| 34 | 34 | ||
| 35 | #define LED_CAPS_LOCK_PIN B4 | ||
| 36 | |||
| 35 | /* Backlight configuration | 37 | /* Backlight configuration |
| 36 | */ | 38 | */ |
| 37 | #define BACKLIGHT_LEVELS 1 | 39 | #define BACKLIGHT_LEVELS 1 |
diff --git a/keyboards/clueboard/66_hotswap/prototype/prototype.c b/keyboards/clueboard/66_hotswap/prototype/prototype.c index 7c307be61..4ce3dd65f 100644 --- a/keyboards/clueboard/66_hotswap/prototype/prototype.c +++ b/keyboards/clueboard/66_hotswap/prototype/prototype.c | |||
| @@ -1,20 +1,6 @@ | |||
| 1 | #include "prototype.h" | 1 | #include "prototype.h" |
| 2 | #include <avr/io.h> | ||
| 3 | #include "backlight.h" | ||
| 4 | #include "print.h" | 2 | #include "print.h" |
| 5 | 3 | ||
| 6 | void matrix_init_kb(void) { | ||
| 7 | // put your keyboard start-up code here | ||
| 8 | // runs once when the firmware starts up | ||
| 9 | matrix_init_user(); | ||
| 10 | led_init_ports(); | ||
| 11 | } | ||
| 12 | |||
| 13 | |||
| 14 | void matrix_scan_kb(void) { | ||
| 15 | matrix_scan_user(); | ||
| 16 | } | ||
| 17 | |||
| 18 | void backlight_init_ports(void) { | 4 | void backlight_init_ports(void) { |
| 19 | print("init_backlight_pin()\n"); | 5 | print("init_backlight_pin()\n"); |
| 20 | // Set our LED pins as output | 6 | // Set our LED pins as output |
| @@ -41,19 +27,3 @@ void backlight_set(uint8_t level) { | |||
| 41 | PORTD &= ~(1<<1); // Arrows | 27 | PORTD &= ~(1<<1); // Arrows |
| 42 | } | 28 | } |
| 43 | } | 29 | } |
| 44 | |||
| 45 | void led_init_ports() { | ||
| 46 | // * Set our LED pins as output | ||
| 47 | DDRB |= (1<<4); | ||
| 48 | } | ||
| 49 | |||
| 50 | void led_set_kb(uint8_t usb_led) { | ||
| 51 | DDRB |= (1<<4); | ||
| 52 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||
| 53 | // Turn capslock on | ||
| 54 | PORTB |= (1<<4); | ||
| 55 | } else { | ||
| 56 | // Turn capslock off | ||
| 57 | PORTB &= ~(1<<4); | ||
| 58 | } | ||
| 59 | } | ||
diff --git a/keyboards/clueboard/card/card.c b/keyboards/clueboard/card/card.c index 9b4b397d9..33a4cc3cd 100644 --- a/keyboards/clueboard/card/card.c +++ b/keyboards/clueboard/card/card.c | |||
| @@ -1,35 +1,9 @@ | |||
| 1 | #include "card.h" | 1 | #include "card.h" |
| 2 | |||
| 2 | #define BL_RED OCR1B | 3 | #define BL_RED OCR1B |
| 3 | #define BL_GREEN OCR1A | 4 | #define BL_GREEN OCR1A |
| 4 | #define BL_BLUE OCR1C | 5 | #define BL_BLUE OCR1C |
| 5 | 6 | ||
| 6 | void matrix_init_kb(void) { | ||
| 7 | // put your keyboard start-up code here | ||
| 8 | // runs once when the firmware starts up | ||
| 9 | |||
| 10 | matrix_init_user(); | ||
| 11 | } | ||
| 12 | |||
| 13 | void matrix_scan_kb(void) { | ||
| 14 | // put your looping keyboard code here | ||
| 15 | // runs every cycle (a lot) | ||
| 16 | |||
| 17 | matrix_scan_user(); | ||
| 18 | } | ||
| 19 | |||
| 20 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 21 | // put your per-action keyboard code here | ||
| 22 | // runs for every action, just before processing by the firmware | ||
| 23 | |||
| 24 | return process_record_user(keycode, record); | ||
| 25 | } | ||
| 26 | |||
| 27 | void led_set_kb(uint8_t usb_led) { | ||
| 28 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 29 | |||
| 30 | led_set_user(usb_led); | ||
| 31 | } | ||
| 32 | |||
| 33 | void backlight_init_ports(void) | 7 | void backlight_init_ports(void) |
| 34 | { | 8 | { |
| 35 | // Set B5, B6, and B7 as output | 9 | // Set B5, B6, and B7 as output |
