The game ‘Memory’ is the first GPIO project. The board is set up with two rows: one with four LEDs and the other with four buttons as shown in the finished board in Figure 22-1.
Figure 22-1
The suggested layout of the breadboard with two rows: one with four LEDs and the other with four buttons
When the sequence plays on the LEDs, the player repeats the sequence by pressing the corresponding buttons on the row underneath the LEDs. The game starts with one LED being ...
Get Python, PyGame, and Raspberry Pi Game Development now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.