mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-22 17:39:55 +00:00
3f419dc872
* Unconditionally call led_init_ports * Another call to led_init_ports
25 lines
594 B
C
25 lines
594 B
C
#include "rev4.h"
|
|
|
|
void led_init_ports(void) {
|
|
// Set our LED pins as output
|
|
setPinOutput(B13); // LED1
|
|
writePinLow(B13);
|
|
setPinOutput(B14); // LED2
|
|
writePinLow(B14);
|
|
setPinOutput(A8); // LED3
|
|
writePinLow(A8);
|
|
setPinOutput(A0); // Capslock LED
|
|
writePinLow(A0);
|
|
}
|
|
|
|
bool led_update_kb(led_t led_state) {
|
|
bool res = led_update_user(led_state);
|
|
if(res) {
|
|
writePin(B13, led_state.num_lock);
|
|
writePin(A0, led_state.caps_lock);
|
|
writePin(B14, led_state.caps_lock);
|
|
writePin(A8, led_state.scroll_lock);
|
|
}
|
|
return res;
|
|
}
|