oe1wkl / Morserino-32

Morserino-32 multi-functional Morse code machine, based on ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HID Keyboard Mode

arkorobotics opened this issue · comments

commented

Hello!

I noticed the Morserino-32 in "CW Keyer" mode enumerates as a com port device and outputs the same decoded string (sent by the user) as shown on the display. Would it be possible to make it enumerate as an HID Keyboard instead? I would like to practice typing and sending text messages with CW. Just an idea. Thanks!

Hi, just chiming in.

First, thank you Willi for this awesome product, and your hard work!

I also wanted to use the Morserino as a keyboard, so I wrote a small program to translate the characters from the serial port to Windows keypress events to any active window.
I have made it this weekend, just mindlessly throwing together snippets from the net, so it is very ugly, probably buggy, but it seemed to work so far. I won't spend much time on it as far as it works, but if somebody wants do to the same, feel free to use it.

https://github.com/allthelazorz/serial2keypress/

I have compiled it in Visual Studio as a C++ Console App. If it doesn't work properly, I re-plug the Morserino, and restart the program, but didn't have to do that much so far.
I intentionally don't let the spaces through, because I'm still slow at Morse, and I cannot keep proper pacing yet. You can change this at the bottom of the code if you want.
I use the Morserino with my right hand, pressing spaces and (lots of) backspaces with the left on the keyboard. Shift can make some letters capital, but not all, I haven't figured that out yet. Caps lock works on all letters. You need to switch your keyboard layout to English for the symbols to work properly.

It is very far from a good and usable solution, but you can use it until something better comes along. I have happily beeped URLs into my browser, typed short notes, even did some runs with it on typeracer.com :)