This is modification of code from an Instructable by TechKiwiGadgets https://www.instructables.com/id/Retro-Pac-Man-Clock/
The purpose of the modification is to adapt the design to work with a HiLetgo (ILI9486) 480X320 TFT display.
(https://www.amazon.com/gp/product/B073R7Q8FF/ref=oh_aui_search_detailpage?ie=UTF8&psc=1).
And arduino Mega (https://www.amazon.com/gp/product/B01H4ZLZLQ/ref=oh_aui_search_detailpage?ie=UTF8&psc=1).
Additionally, because the display is not a touch display. Code has been added to use physical buttons to allow the time to be set on the clock.
The above photo is the clock in a 3d printed case. The case can be found on Thingiverse.com.
https://www.thingiverse.com/thing:2790349
There is a newer version of the case that can be found here:
https://www.thingiverse.com/thing:3143466
There is a new version (V4) of the arduino code that makes Mario jump over the barrels. Mario also always goes up the ladder on level 4 in order to win the game.
Thanks again to Instructables and "TechKiwiGadgets" for his addition of an Arcade Game Clock (https://www.instructables.com/id/Retro-Arcade-Clock-Arduino/)
I modified his code to work with the HiLetGo (ILI9486) 480X320 TFT display.
There is now code to set the clock with the buttons. I have not been able to make the large seven segment font to work.