Hacker News new | ask | show | jobs
by rational_indian 868 days ago
Why do we need this? What problem does it solve?

>> Kirei is a keyboard library that you feed inputs to (which keys are pressed) and get outputs from (HID reports) ... It's not just a keyboard firmware

This looks like a repeat of the nodejs leftpad situation but this time it's for keyboard firmware.

2 comments

It takes the pin changes (matrix or already decoded keys isn't clear to me) and generates the appropriate HID reports based on whether they're tapped, long pressed, shifted, etc. Not the hardest code in the world to write, but a long way from leftpad and fairly easy to miss edge cases on the first try.

Besides, what's the issue with someone writing a personal abstraction library? Java programmers commit greater crimes than this daily.

It's keyboard firmware for some riscv microcontrollers.

If you want to build a custom keyboard with certain low cost mcus