mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-11 04:10:58 +00:00
26 lines
569 B
C
26 lines
569 B
C
|
#include "split75.h"
|
||
|
|
||
|
#include "i2c_master.h"
|
||
|
|
||
|
|
||
|
void keyboard_pre_init_kb(void) {
|
||
|
led_init_ports();
|
||
|
keyboard_pre_init_user();
|
||
|
}
|
||
|
|
||
|
void led_init_ports(void) {
|
||
|
setPinOutput(NUMLOCK_LED_PIN);
|
||
|
setPinOutput(CAPSLOCK_LED_PIN);
|
||
|
setPinOutput(SCROLLLOCK_LED_PIN);
|
||
|
}
|
||
|
|
||
|
bool led_update_kb(led_t led_state) {
|
||
|
bool res = led_update_user(led_state);
|
||
|
if(res) {
|
||
|
writePin(NUMLOCK_LED_PIN, led_state.num_lock);
|
||
|
writePin(CAPSLOCK_LED_PIN, led_state.caps_lock);
|
||
|
writePin(SCROLLLOCK_LED_PIN, led_state.scroll_lock);
|
||
|
}
|
||
|
return res;
|
||
|
}
|