mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-29 04:39:26 +06:00
5cbac94d08
* branch keyboards/kinesis/kint2pp from keyboards/kinesis/stapelberg Changes will be made in the next commit * [Keyboard] update wiring for kinT (kint2pp variant) * add QMK plumbing * Apply zvecr’s suggestions from code review * Update keyboards/kinesis/kint2pp/config.h * Update keyboards/kinesis/kint2pp/config.h * remove superfluous config.h include
27 lines
589 B
C
27 lines
589 B
C
#include "kint2pp.h"
|
|
|
|
void matrix_init_kb(void) {
|
|
led_init_ports();
|
|
|
|
|
|
matrix_init_user();
|
|
}
|
|
void led_init_ports() {
|
|
// * Set our LED pins as output
|
|
setPinOutput(C3); // Keypad LED
|
|
setPinOutput(C4); // ScrLock LED
|
|
setPinOutput(C5); // NumLock LED
|
|
setPinOutput(C1); // CapsLock LED
|
|
}
|
|
|
|
bool led_update_kb(led_t led_state) {
|
|
bool res = led_update_user(led_state);
|
|
if(res) {
|
|
writePin(C3, !led_state.compose);
|
|
writePin(C4, !led_state.scroll_lock);
|
|
writePin(C5, !led_state.num_lock);
|
|
writePin(C1, !led_state.caps_lock);
|
|
}
|
|
return res;
|
|
}
|