* Unconditionally call led_init_ports * Another call to led_init_portspull/13872/head
@ -1,12 +1 @@ | |||||
#include "otd_plus.h" | #include "otd_plus.h" | ||||
void keyboard_pre_init_kb(void) { | |||||
led_init_ports(); | |||||
keyboard_pre_init_user(); | |||||
} | |||||
void led_init_ports(void) { | |||||
setPinOutput(CAPS_LOCK_LED_PIN); | |||||
setPinOutput(SCROLL_LOCK_LED_PIN); | |||||
} | |||||
@ -1,18 +1 @@ | |||||
#include "tokyo60.h" | #include "tokyo60.h" | ||||
void matrix_init_kb(void) { | |||||
// Keyboard start-up code goes here | |||||
// Runs once when the firmware starts up | |||||
matrix_init_user(); | |||||
led_init_ports(); | |||||
}; | |||||
void matrix_scan_kb(void) { | |||||
// Looping keyboard code goes here | |||||
// This runs every cycle (a lot) | |||||
matrix_scan_user(); | |||||
}; | |||||
void led_init_ports(void) { | |||||
/* LEDs on */ | |||||
} |
@ -1,25 +1 @@ | |||||
#include "split75.h" | #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; | |||||
} |