Skip to content
bonnette edited this page Feb 12, 2018 · 6 revisions

This repository contains code for a Donkey Kong 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.
Extending the graphics to fit the screen meant that a great deal of the "Barrel" and "Mario" movement code had to be modified.
Keeping the Barrels in line and rebuilding the schaffolding 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.
  • Mario never jumps
  • Mario always wins.
  • Mario scores by simply touching a barrel
  • Mario scores by saving princess Pauline
  • Kong never scores.
  • Kong never wins.
  • No touch screen.
  • 480 X 320 TFT (instead of 320 X 240)
  • 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.

    Client Photo

    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.

Client Photo

Clone this wiki locally