This is simply an update of a previous post I wrote about a simple car game I made for a 16×2 LCD screen connected to a Arduino Uno. It is called “
Voitures” “Vroum!” ( total lack of imagination today now that’s much better).
It uses pins 12, 11, 6, 5 and 4 to connect the LCD.
It uses the LiquidCrystal library for Arduino :
Note that this codes was written for an ad-hoc pad of 10 buttons connected to the board. Only two simple push buttons are required to control the game. I don’t change the code due to lack of time, but you’ll simply have to remove the “detect()” function, and adapt the code in the “initial()” function and at the beginning of the main loop (using a simple digitalRead()).
Read this page if you have trouble wiring your buttons :
The only magic there is to this game lies in the use of the extra memory for custom characters available in the LCD screen (a maximum of 8 characters can be created) :
Here’s a video of the game :
You can download the Arduino sketch here.
Fasten your seatbelt and have fun.