This is a pong game, it uses a neopixel led matrix 8x8 as display. To control the game, each player has two push buttons to move up and down the paddle, an extra push button is used to start the game. The game ends when the ball touch the left or the right side of the matrix. To set the initial conditions of the game press the reset button.
To use the project you must to connect the 6 push butttons (two for player 1, two for player 2, one for start game, and 1 for reset) with an pull up resistor, also you need conect the data in pin of neopixel matrix to driver_neopixel output.
6 pushbutton, 8x8 neopixel matrix
# | Input | Output | Bidirectional |
---|---|---|---|
0 | start | driver_neopixel | |
1 | p1_up | ||
2 | p1_down | ||
3 | p2_up | ||
4 | p2_down | ||
5 | |||
6 | |||
7 |