Introduction: JumpMan Game Arduino HD44780 I2c
JumpMan is very simple on Arduino. The game uses only two "jump" and "reset" buttons. The game uses a display HD44780 2x16 connected via i2c. In the game, we skip a man over the trees. The speed of the game is growing all the time. If you do not know how to use the HD44780 display with the i2c module, see the tutorial: HOW TO USE DISPLAY HD44780 i2c .
Step 1: Video Tutorial
Step 2: List Elements:
- Arduino Uno
- Display hd44780 and i2c module
- 2 switch
- 7 wires
- universal board
Step 3: Connections:
HD44780 i2c: SDA to SDA or A4, SCL to SCL or A5, Vcc to 5V, GND to GND
Button 1 to pin RESET and GND
Button 2 to pin 2 digital and GND
Step 4: Sketch:
Now we can go to the appropriate program. Install library LiquidCrystal_i2cby Frank de Brabander. Set the address and size of your i2c HD44780 my is 0x3F . Set the contrast with the potentiometer. You can change the amount of live in "int life = 5;" .
button 1 -> Jump
button 2 -> Reset
Enjoy the game :) .