diff options
Diffstat (limited to 'keyboards/kc60se/kc60se.c')
-rw-r--r-- | keyboards/kc60se/kc60se.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/keyboards/kc60se/kc60se.c b/keyboards/kc60se/kc60se.c index 2bf0b1b92..e484d74db 100644 --- a/keyboards/kc60se/kc60se.c +++ b/keyboards/kc60se/kc60se.c @@ -13,12 +13,18 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "kc60se.h" -extern inline void kc60se_caps_led_on(void); -extern inline void kc60se_caps_led_off(void); +#include QMK_KEYBOARD_H + +void matrix_init_kb(void){ + setPinOutput(B2); +} + +bool led_update_kb(led_t led_state) { + bool res = led_update_user(led_state); + if(res) { + writePin(B2, !led_state.caps_lock); + } + return res; +} -void led_set_kb(uint8_t usb_led) { - (usb_led & (1<<USB_LED_CAPS_LOCK))? kc60se_caps_led_on(): kc60se_caps_led_off(); - led_set_user(usb_led); -}
\ No newline at end of file |