- 30–60 minutes of time
- Arduino Uno or Nano
- SSD1306 OLED display (128x64, I2C)
- 4 buttons or a joystick module
- Jumper wires
- A computer with Arduino IDE or PlatformIO
Download pacm.ino from Releases and open it in Arduino IDE.
In Arduino IDE go to Tools → Manage Libraries and install:
| Library | Author |
|---|---|
| Adafruit SSD1306 | Adafruit |
| Adafruit GFX Library | Adafruit |
| Adafruit BusIO | Adafruit |
When installing SSD1306, click "Install All" to get GFX and BusIO automatically.
Connect the OLED via I2C:
| OLED | Arduino |
|---|---|
| VCC | 3.3V or 5V |
| GND | GND |
| SDA | A4 |
| SCL | A5 |
| Button | Pin |
|---|---|
| Up | 7 |
| Down | 6 |
| Left | 5 |
| Right | 4 |
| Wire each button between its pin and GND with a 10kΩ pull-down resistor. |
Connect X-axis → A1, Y-axis → A0, VCC → 5V, GND → GND.
Then in pacm.ino, comment out the digitalRead() lines in the input_* functions and uncomment the analogRead() lines below them.
Select your board (Tools → Board) and port (Tools → Port), then hit Upload.
- Ghost AI with random pathfinding
- Power-up orbs (eat ghosts for 10,000 pts!)
- 3 lives
- Best time saved to EEPROM
- Menu + credits screen
NO GENERATIVE AI WAS USED FOR CODE,GENERATIVE AI USED FOR DOCUMENTATION