3 ms·
I've used TinyUSB to turn a Raspberry Pi 2040 (the very cheap microcontroller) into a USB keyboard that you plug your morse key into and send morse which the RP
by nickcw 4y ago
I've used TinyUSB to turn a Raspberry Pi 2040 (the very cheap microcontroller) into a USB keyboard that you plug your morse key into and send morse which the RPI 2040 converts into key presses and sends to the computer.
TinyUSB was very easy to use. It was my first foray into USB devices and adapting the example code was straight forward.
I wrote the code in C but I could have done it in python also but I didn't as you need ms accuracy for decoding morse code and I wasn't sure it would be fast enough.
There are examples for pretty much any usb peripheral you can think of here: https://github.com/hathach/tinyusb/tree/master/examples/device https://github.com/hathach/tinyusb/tree/master/examples/devi...
- deleted 4y ago[deleted]