mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-18 15:43:23 +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;
|
||
|
}
|
||
|
|