Make a Pro Micro with ATmega32U4 send key strokes using push buttons.
Uses Keyboard.press
and Keyboard.release
to support holding a button.
I needed a few buttons to use things like push to talk when using my turbo trainer.
Simplest solution: Put a keyboard next to the trainer.
Programmer solution: Use a Pro Micro with a ATmega32U4 chip to act as a simple keyboard and velcro push buttons to the handle bars.
- Download and install the Arduino software
- Connect the Pro Micro via USB
- Select Arduino Micro or Leonardo as Board
- Open the *.ino code file
- Customize the buttons array
- Upload it
- Connect buttons to GND and a numbered pin
- Press the buttons!