Congratulations on completing your very own Arduboy-style game shield! You now have a powerful little game console you've built yourself — complete with an OLED screen, buttons, and a buzzer for sound.
But what if we told you… you never have to run out of games?
In this bonus lesson, we'll show you how to use ChatGPT to create unlimited new games using the exact components and pin assignments you've been working with — all through the power of AI-assisted coding.
🧠 What You’ll Learn
- How to prompt ChatGPT to generate working Arduino games
- How to describe your hardware setup clearly to AI
- How to request simple game ideas and iterate on them
- How to debug and improve game code using AI
🕹 Your Hardware Recap
When talking to ChatGPT (or any AI code helper), the most important step is to clearly explain what components you're using and how they’re wired. Here’s your setup:
OLED Display (I2C - Using u8g2lib):
- GND → GND
- VCC → 5V
- SCK (Clock) → A5
- SDA (Data) → A4
Buttons:
- Up → D2
- Down → D3
- Left → D4
- Right → D5
- A (Action Button A) → D6
- B (Action Button B) → D7
Passive Buzzer:
- Signal → D8
- GND → GND
Make sure to include these in your prompt!
🧾 Template Prompt to ChatGPT
Copy and paste this into ChatGPT to start generating your own game:
🧪 Challenge Yourself!
Once you try the template, you can ask ChatGPT to do more, like:
🧠 Prompt: “Can you make it a Flappy Bird clone?”
🧠 Prompt: “Make the A button shoot a laser.”
🧠 Prompt: “Add a score system in the top right corner.”
🧠 Prompt: “Add a game over screen and a restart option.”
🧠 Prompt: “Can you make a rhythm game that uses the buzzer?”
🧰 Debugging and Tweaking
If the code doesn’t work perfectly the first time, don’t worry — it’s normal! You can ask:
“This code isn’t compiling. Can you help me fix the errors?”
Or:
“Can you simplify the code so it uses fewer global variables?”
You’re learning how to be a game designer, developer, and debugger — all with AI by your side.
💡 Bonus Tip: Keep a Game Folder
Create a folder on your computer called My_Arduboy_AI_Games. Save every .ino file you generate — you'll quickly build up your own growing game library!
🌟 Final Thought
You now have a tool in your pocket that can help you create anything — not just games, but animations, sound effects, and more. With just a few words and your imagination, you're no longer just playing games — you're creating them.
Welcome to the future of DIY game development.
Now go create something awesome. 😎