[Keyboard] Kinesis + Pro Micro (#9944)
* [Keyboard] Kinesis + Pro Micro init - docs for DIY - custom matrix = lite - a near-factory dvorak mapping - optimized debouncing for lower latency * chore: reformatting * chore: update doc * chore: cleanups according to PR feedback * chore: PR feedback * fix: compile error * chore: add include * fix: LEDs hanging after USB disconnect * chore: enable QMK goodies by default * chore: use semantic write pin
This commit is contained in:
parent
e071206c58
commit
194dc0984e
9 changed files with 358 additions and 10 deletions
31
keyboards/kinesis/nguyenvietyen/nguyenvietyen.c
Normal file
31
keyboards/kinesis/nguyenvietyen/nguyenvietyen.c
Normal file
|
@ -0,0 +1,31 @@
|
|||
#include "nguyenvietyen.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
led_init_ports();
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
void led_init_ports() {
|
||||
// * Set our LED pins as output
|
||||
setPinOutput(D7); // Keypad LED
|
||||
setPinOutput(C6); // ScrLock LED
|
||||
setPinOutput(D4); // NumLock LED
|
||||
setPinOutput(E6); // CapsLock LED
|
||||
|
||||
// turn all LEDs off by default
|
||||
writePinHigh(D7);
|
||||
writePinHigh(C6);
|
||||
writePinHigh(D4);
|
||||
writePinHigh(E6);
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool res = led_update_user(led_state);
|
||||
if (res) {
|
||||
writePin(D7, !led_state.compose);
|
||||
writePin(C6, !led_state.scroll_lock);
|
||||
writePin(D4, !led_state.num_lock);
|
||||
writePin(E6, !led_state.caps_lock);
|
||||
}
|
||||
return res;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue