mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-18 01:46:09 +00:00
23 lines
429 B
C
23 lines
429 B
C
|
#include "xd68.h"
|
||
|
|
||
|
void matrix_init_kb(void) {
|
||
|
// put your keyboard start-up code here
|
||
|
// runs once when the firmware starts up
|
||
|
matrix_init_user();
|
||
|
led_init_ports();
|
||
|
}
|
||
|
|
||
|
void led_init_ports(void) {
|
||
|
// * Set our LED pins as output
|
||
|
setPinOutput(B2);
|
||
|
writePinHigh(B2);
|
||
|
}
|
||
|
|
||
|
bool led_update_kb(led_t led_state) {
|
||
|
if(led_update_user(led_state)) {
|
||
|
writePin(B2, !led_state.caps_lock);
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|