-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This repository contains code for a PacMan Clock. The code is a modification of code from an Instructable by TechKiwiGadgets https://www.instructables.com/id/Retro-Pac-Man-Clock/
The purpose of the modification is to allow the design to work with an HX8357C 480X320 TFT display.
Because the HX8357C is not a touch screen enabled display. The original work by TechKiwiGadgets was modified
to work with two push buttons which provide a way for you to set the time.
The original code was written for use with a 320X240 display. Because the HX8357 resolution is 480X320, modifications were made to add additional graphics to extend the playing field and munch-able dots.
Extending the graphics to fit the screen meant that a great deal of the Ghost and PacMan movement code had to be modified.
Keeping the Ghost from eating the dots was quite a chore and made me appreciate all of the work done by the original author (TechKiwiGadgets). Be sure to visit his "Instructable" at:
https://www.instructables.com/id/Retro-Pac-Man-Clock/
The differences between this clock and TechKiwiGadgets clock:
- There are no alarm functions
- You can only watch the game. There is no interaction.
- No touch screen.
- 480 X 320 TFT (instead of 320 X 240)
- Larger font
- The setup screen does not fill the screen
The first photo shows the clock with RTC module and buttons. The red button is the "Setup / Select" button. You use this button to enter setup mode.
The second photo shows the clock in setup mode
Note that there is a small red dot on the plus sign of the hours selection. This means that the hour display is selected and will increment each time you press the green (up/down) button.
Pressing the red button again will advance the red dot to the "Hours Minus" selection. Pressing the red button again will advance the selection to "Minutes Plus". Press it again and it advances to "Minute Minus". Each press of the red button (setup button) advances to the next selection. Selecting "Save" saves the time and exits setup. Selecting "Exit" exits setup without saving the time.
