Uploaded September 2023 | Updated September 2026, 4 hours ago
Today we fondle tiny #buttons with #Zig and #raspberrypipico and make the game work, minus the sound -- that comes in the last episode.
The code in the episode:
github.com/rdoetjes/simon_zig/blob/main/simon/simon_3.zig
The repository
github.com/rdoetjes/simon_zig.git
Beating SIMON: youtube.com/watch?v=adb35_nOJJE
Chapters:
00:00 Intro
00:14 Explaining the logic of the buttons we will implement
01:43 Refactoring old code into a game loop
05:33 Level select implementation (gpio)
07:12 Pull up vs Pull Down
09:18 Implement the player move with timeout when no button is pressed
15:36 Implementing the button down logic, with timeout when button is held too long
18:20 Game over "light show" and adding missing return types
20:30 You Won "light show"
21:16 Building and fixing compile errors
22:57 Testing the code on the Pi Pico
23:44 Finding and fixing a tiny little behaviour bug
24:02 Playing Simon uhh Ziggy says, without sound
25:05 Conclusion
Today we fondle tiny #buttons with #Zig and #raspberrypipico and make the game work, minus the sound -- that comes in the last episode.
The code in the episode:
github.com/rdoetjes/simon_zig/blob/main/simon/simon_3.zig
The repository
github.com/rdoetjes/simon_zig.git
Beating SIMON: youtube.com/watch?v=adb35_nOJJE
Chapters:
00:00 Intro
00:14 Explaining the logic of the buttons we will implement
01:43 Refactoring old code into a game loop
05:33 Level select implementation (gpio)
07:12 Pull up vs Pull Down
09:18 Implement the player move with timeout when no button is pressed
15:36 Implementing the button down logic, with timeout when button is held too long
18:20 Game over "light show" and adding missing return types
20:30 You Won "light show"
21:16 Building and fixing compile errors
22:57 Testing the code on the Pi Pico
23:44 Finding and fixing a tiny little behaviour bug
24:02 Playing Simon uhh Ziggy says, without sound
25:05 Conclusion










