mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-24 04:12:56 +00:00
74dc65ab2e
* 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
23 lines
429 B
C
Executable File
23 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;
|
|
}
|
|
|