Space Trash Game With ESP32
by JackIsGoofingOff in Circuits > Arduino
139 Views, 1 Favorites, 0 Comments
Space Trash Game With ESP32
I always wanted to have my game console since my childhood, while my parents don't allow me to have one. Now when I grew up, though I purchased Nintendo Switch, my first game machine, I felt that something was still missing. So I decided to build a little game machine with ESP32 and here is the story.
Supplies
- DFRobot Firebeetle ESP32 (Other ESP32 board shall also works fine)
- DFRobot Firebeetle OLED 12864 Cover (AliExpress or Taobao)
- Download the juicy source code
Downloads
Config Your Arduino IDE
For the project to work, you need to have U8g2 library and Bounce2 library installed. To get this library, you can search directly from Tools -> Manage Libraries.
Get Your Codes Work
Since I am using DFrobot Firebeetle ESP32, I chose this module form Tools -> Board. If you are using other ESP32 module, you are suggested to select the right module from the list. After everything is done, just upload the code and enjoy.
Some Take-aways
Alright, I know you are lazy but please also spend some time reading this paragraph. Since I am using the OLED Module from DFrobot, the button is occupying pin D3 and D8. In case you want to use your own ESP32 module with other button setups, you need to modify the code (see the image). And finally, congratulations, hope you can get your own ESP32 game console! Feel free to share your thoughts in the comment section.