Hello,
I'm using an AEK II with a Teensy 2.0-based ADB to USB converter. Software is the great tmk_keyboard code from Haus.
Now I would like keep the Num-Lock LED on, as kind of power LED, since on OSX the numpad is already always in numeric mode.
So far, I've managed to turn the Num-Lock LED on when the Teensy / keyboard is "booted". But when I engage Caps Lock, the Num-Lock LED goes off and keeps off. The Caps Lock LED is behaving normal.
To achieve this, I call "led_set(1);" instead of the normal "led_set(host_keyboard_leds());" in the matrix_init function of matrix.c.
I've tried to find the right place where I can hook into the "caps-lock"-routine, but I didn't managed to find it in the source code.
Any hints and help are appreciated.
AEK II and tmk_keyboard - how to the keep Numlock LED on?
-
- Main keyboard: Apple Extended Keyboard II (ISO /QWERTZ)
- Main mouse: Apple Desktop Bus Mouse II
Last edited by FritzTheGerman on 28 May 2020, 12:07, edited 1 time in total.
-
- Main keyboard: Apple Extended Keyboard II (ISO /QWERTZ)
- Main mouse: Apple Desktop Bus Mouse II
Solved it - an additional change in hook.c keeps the NumLock LED permanently on.
Thanks for the help!
Code: Select all
__attribute__((weak))
void hook_keyboard_leds_change(uint8_t led_status) {
// " | 0x01" to keep NumLock LED permanently on
keyboard_set_leds(led_status | 0x01);
}