This project implements a version of the classic BlockBreaker game using the ATMega32 microcontroller. The game features real-time paddle control using a 1-axis joystick and runs on an embedded system with a graphical display.
- BlockBreaker-style paddle and ball gameplay
- One-axis joystick control for paddle movement
- Collision detection with blocks, walls, and paddle
- ATMega32 Microcontroller
- 1-axis Joystick Analog input via ADC
- Display Module OLED via SPI
- Joystick Left/Right: Move paddle left or right
Direction and Speed are detected through reading the analogue values.
| Component | ATMega32 Pin |
|---|---|
| Joystick X | PA0 |
| OLCD | PORTB (SPI) |
| VCC/GND | 5V / GND |
- Language: C (AVR-GCC)
- Clock Speed: 8 MHz
-
Build the project:
run task "PlatformIO Build"
-
Flash to ATMega32:
connect ATMega32 via JTAG
run task "PlatformIO Upload"
Created by Wolfgang Pawelka and Matthias Wurmannstรคtter.
This project is open-source and available under the GNU General Public License v3.0.