| .cargo | Add keyboard example from embassy | |
| docs | Documentation | |
| src | Send double key press event on squeeze | |
| .gitignore | Initial commit | |
| build.rs | Add keyboard example from embassy | |
| Cargo.lock | Allow to squeeze | |
| Cargo.toml | Allow to squeeze | |
| memory.x | Add keyboard example from embassy | |
| README.md | Documentation | |
Morse keyboard
A simple adapter allowing to use a morse paddle with applications like Dahdidahdit.
The adapter registers as a USB-Keyboard.
Dits are translated to the Character a and dahs to b.
The hardware
The adapter is just a rp2040 with a 3.5mm TRS socket soldered directly to some GPIO pins.
In my case, I used a rp2040-Plus by Waveshare which comes with a USB-C plug.
Wiring:
- Tip: Pin 14
- Ring: Pin 17
- Sleeve: GND
The socket leads are soldered directly to the board. board with socket
Shrink-tubing is used to protect the board. covered_board.jpg
The tube is not yet shrunk, so I can still reach the boot button to update the firmware.
In use with Dahdidahdit on an Android phone. in_use.jpg
The software
I copied and adapted the keyboard example from the embassy project.
Some small changes later, the code sends the character a for dits and b for dahs.
To load the firmware, plugin your rp2040 with the boot button pressed. Then run:
cargo run --release
Or download the morsekeyboard.uf2 from the release page and copy it to the rp2040 drive.