TETRIS and SNAKE on STM32F429 Discovery Board.
This is a small group project that I had in the Embedded System Design class. There're still some flaws in it but it works.
(TETRIS) | (SNAKE) |
Read carefully the instructions below if you want to play the games on the board.
-
First, you need to copy all the directories in this repository to your project's root folder (I used STM32CubeIDE 1.3.0).
-
You might want to configure your IDE to include the
Drivers/BSP
directory. -
Then plug the board in, press Launch and let the IDE do its jobs.
Note: Use the USER button (the blue one on the board) to switch between two games.
You will need a breadboard, four buttons, four 1 KOhm resistors, wires to connect.
Connect the button with the pull-down resistor configuration (I don't know how to describe this but you understand, right? If you don't, you could try googling for What the f*ck is pull-down (or pull-up) resistor and why do I have to use it?), do this for all four buttons.
Then connect the UP, DOWN, LEFT, RIGHT buttons to the PB12, PB13, PC8, PC9 pins of the board, respectively and you're good to go.