Try it yourself: Interactive KBD
You have a new keyboard with different layers and you don't know what you are pressing?
With Interactive KBD
you now see what you are pressing in realtime.
-
You need a keyboard with QMK Firmware.
-
You need to enable the
RAW HID
feature: How to enable the Raw Hid feature. -
Paste the following code into your
keymap.c
file:
void post_process_record_user(uint16_t keycode, keyrecord_t *record) {
uint8_t msg[32];
memset(msg, 0, 32);
msg[0] = record->event.key.col;
msg[1] = record->event.key.row;
msg[2] = record->event.pressed;
msg[3] = get_highest_layer(default_layer_state);
msg[4] = get_highest_layer(layer_state);
raw_hid_send(msg, 32);
}