The hex:
The source, to compile with AVR-GCC:
or get it all in a zip:
The hex file is compiled for AtMega32 at 8 Mhz with the following connections:
Inputs: PA0 Joy up PA1 Joy down PA2 Joy left PA3 Joy right PA4 Joy fire PA5 Gravity on/off <=> real/naive Outputs: PORTD Vector X position (8-bit) PORTC Vector Y position (8-bit)
The joystick signals are active low. The gravity switch toggles between traditional Tetris and chain reaction rules.
By Lars Ole Pontoppidan
Aug. 2007
Previous: Highscore challenge - Next: Comments