This is a direct port of Marek Miettinen's micro-tetris from Cortex-M0 to Cortex-M4. Specifically from the STM32F042K6 (NUCLEO-F042K6) to the STM32F103 (eg. Blue-Pill)
It's a fun showcase of the SSD1306 OLED display.
I wrote a bit about porting this here.
The original is in this branch. I didn't (yet?) port the pong game here.
$ rustup target add thumbv7m-none-eabi
$ cargo install cargo-flash
$ cargo flash --release --chip STM32F103C8
This project is licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.