qmk_firmware/keyboards/xd68/xd68.c
randlor 74dc65ab2e [Keyboard] XD68 65% ATMega32U4 based (#7395)
* First working draft

* Updated readme.md

* Fixed url

* Typo fix

* RGB + Backlight working

* Fixed matrix for ISO NUHS

* ISO matrix working

* Adding ANSI default layout

* First release commit

* Removed reference to deprecated layout

* Changes from PR #7395 review

* Additional changes as requested for PR #7395

* Additional changes from @noroadsleft review

* Replaced ifndef/endif with pragma

* Adding yanfali's recommended changes
2019-12-15 21:33:04 -08:00

22 lines
429 B
C
Executable file

#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;
}