3 ms·
Going to toot my own horn a little bit here. I used this capability on this work project: https://github.com/nhsx/il-magic-scanner https://github.com/nhsx/il-ma
by regularfry 3y ago
Going to toot my own horn a little bit here. I used this capability on this work project: https://github.com/nhsx/il-magic-scanner https://github.com/nhsx/il-magic-scanner (long story short: use a pi camera to OCR ID info off a phone screen, then pretend to be a keyboard and "type" it into an attached computer). There's a spun-off standalone daemon at https://github.com/nhsx/il-keebd https://github.com/nhsx/il-keebd which handles the "pretend to be a keyboard" bit. It listens on a local socket for text, converts it to scancodes, and squirts them up to the usb host.
The keymap isn't complete by any means, but it's got enough there to be interesting.