Skip to content

dawosch/interactive-kbd

Repository files navigation

Interactive KBD

Interactive KBD Demo

Try it yourself: Interactive KBD

What is 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.

Requirements

  1. You need a keyboard with QMK Firmware.

  2. You need to enable the RAW HID feature: How to enable the Raw Hid feature.

  3. 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);
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published