- App generates a random number between 1 and 100
- User submits guesses via a remote control
- System provides feedback on whether the guess is higher or lower than the target
- "Victory" title is displayed once the correct number is found
- User presses "restart" button to start new game
- Rust
- Embassy
- STM32L476RG
- LCD with I2C adapter
- "Car mp3" remote control
- IR receiver
$ rustup target add thumbv7em-none-eabihf
| IR pin | STM32 pin |
|---|---|
| Output | PA0 (A0) |
| VCC | +3V3 |
| GND | GND |
| LCD pin | STM32 pin |
|---|---|
| SDA | SDA/D14/PB9 |
| SCL | SCL/D15/PB8 |
| VCC | +3V3 |
| GND | GND |
Screenshot are taken from here.
- Connect microcontroller to PC and run
cargo run - Use "Car mp3" remote controller to interact with application by pressing 0-9 buttons, use >>| button to submit answer and |<< button to erase last digit, >|| to restart the game.
Cherry-picked from https://github.com/a113ssa/stm32-setup/tree/main/guessing_game and improved here



