This project turns your STM32F411 Discovery board into a game controller that allows you to play the Dino game on Chrome browser. The application utilizes the following concepts:
- CMSIS v2 (abstraction layer above FreeRTOS)
- The device represents itself to the computer as an HID device (keyboard)
- Two ways to play the game:
- Clicking the user button on the board
- Connecting a potentiometer to pin PC5
- Clicking the user button on the board
- Button Control:
- Press the user button on the Discovery board to make the Dino jump.
- Press the user button on the Discovery board to make the Dino jump.
- Potentiometer Control:
- Connect a potentiometer to pin PC5.
- Rotate the potentiometer to control the Dino's jumps.
- Connect a potentiometer to pin PC5.
The tasks are implemented in the freertos.c
file, utilizing CMSISv2 (or more detailed FreeRTOS) for task management. The HID device emulation sends the space bar key to the computer whenever an event is triggered (rotation of the potentiometer or button press).
This project is licensed under the MIT License.
Feel free to contribute by opening issues or pull requests. Your input is highly appreciated!
Thanks to the STM32 community for their support and resources. Happy gaming!