This project demonstrates button input handling and LED matrix control on a BBC micro:bit v2, with serial communication capabilities.
- Button A and B input detection
- Full LED matrix display feedback on button press
- Serial communication (115200 baud rate)
- Sends 'i' when Button A is pressed
- Sends 'j' when Button B is pressed
- Rust toolchain
thumbv7em-none-eabihftarget:rustup target add thumbv7em-none-eabihf- probe-rs:
cargo install probe-rs-cli - BBC micro:bit v2 board
- Clone the repository
- Connect your micro:bit v2 to your computer via USB
- Build and flash the project:
cargo runsrc/main.rs- Main application code handling button inputs and LED displaysrc/serial.rs- UART communication implementation.cargo/config.toml- Cargo configuration for cross-compilationEmbed.toml- probe-rs configuration for flashing and debugging
The device communicates over UART with the following settings:
- Baud Rate: 115200
- Data Bits: 8
- Parity: None
- Stop Bits: 1
Output Format:
- 'i' - Button A pressed
- 'j' - Button B pressed
MIT License
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.