mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-26 18:47:24 +06:00
[Keyboard] Update e65.c to fix Caps Lock indicator (#7405)
* Update e65.c Fixing Caps Lock LED indicator * Update e65.c Using new LED functions (led_update_kb)
This commit is contained in:
parent
eb91c96288
commit
0a5125a535
|
@ -17,16 +17,22 @@
|
||||||
#include "e65.h"
|
#include "e65.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
setPinOutput(B6);
|
// put your keyboard start-up code here
|
||||||
|
// runs once when the firmware starts up
|
||||||
|
|
||||||
matrix_init_user();
|
matrix_init_user();
|
||||||
|
led_init_ports();
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
void led_init_ports(void) {
|
||||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
setPinOutput(B6);
|
||||||
writePinHigh(B6);
|
writePinHigh(B6);
|
||||||
} else {
|
}
|
||||||
writePinLow(B6);
|
|
||||||
|
bool led_update_kb(led_t led_state) {
|
||||||
|
if(led_update_user(led_state)) {
|
||||||
|
writePin(B6, !led_state.caps_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user