Small comments and changes
parent
7a3d43acf1
commit
75082e8bae
|
|
@ -33,6 +33,7 @@ static UARTConfig uart_cfg = {
|
||||||
/* State of the leds on the keyboard */
|
/* State of the leds on the keyboard */
|
||||||
volatile bool leds_enabled = false;
|
volatile bool leds_enabled = false;
|
||||||
|
|
||||||
|
/* Process the Anne Pro custom keycodes */
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case APL_RGB:
|
case APL_RGB:
|
||||||
|
|
@ -66,10 +67,11 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
/* Handle other keycodes normally */
|
/* Handle other keycodes normally */
|
||||||
return true;
|
return process_record_user(keycode, record);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Initialize custom keyboard features */
|
||||||
void keyboard_post_init_kb(void) {
|
void keyboard_post_init_kb(void) {
|
||||||
/* Turn on lighting controller */
|
/* Turn on lighting controller */
|
||||||
setPinOutput(C15);
|
setPinOutput(C15);
|
||||||
|
|
@ -85,7 +87,7 @@ void keyboard_post_init_kb(void) {
|
||||||
|
|
||||||
/* Send 'set theme' command to lighting controller */
|
/* Send 'set theme' command to lighting controller */
|
||||||
leds_enabled = true;
|
leds_enabled = true;
|
||||||
uartStartSend(&UARTD3, 4, "\x09\x01\x01");
|
uartStartSend(&UARTD3, 3, "\x09\x01\x01");
|
||||||
|
|
||||||
matrix_init_user();
|
matrix_init_user();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue