This repository contains two Arduino projects featuring games displayed on an ILI9341 TFT screen.
A Tetris-style block-falling game where the player controls falling blocks to clear lines.
Key Features & Technologies:
- Display: Adafruit ILI9341 & GFX libraries for graphics rendering.
- Controls: Analog Joystick for left/right movement and button for rotation.
- Hardware Interrupts: Used for the joystick button to ensure responsive rotation.
- Timer Interrupts: Utilizes Timer1 (ISR(TIMER1_COMPA_vect)) for consistent game tick/block falling speed without blocking code execution.
A two-player reaction/rhythm game. Players must press their respective buttons when a moving target crosses a detection line. The game speeds up as players successfully hit the targets.
Key Features & Technologies:
- Display: Adafruit ILI9341 & GFX libraries for drawing targets and UI.
- Hardware Interrupts: Used for precise, immediate detection of Player 1's button presses.
- I2C Communication: Uses the Wire.h library, acting as an I2C Slave device catching Player 2's button states from a Master device.
- Dynamic Difficulty: The movement speed increases based on the continuous score multiplier (hits).