home   |  video   |  gallery   |  circuitry   |  code   |  schematics   |  bom   |  gems of wisdom  


CODE

Signaling Module:
[Header File]  [Pseudocode]  [C Code]

Timing Module:
[Header File]  [Pseudocode]  [C Code]

Pinout:

[Pinout Diagram]
Game Play Module:
[Header File]  [Pseudocode]  [C Code]

Main Module:
[Header File]  [Pseudocode]  [C Code]

Timing Pseudocode

/* Timing module for Railroad HandCar arcade game */

/* Initialize timer and set 1ms 'tick' increments */

InitializeTimer
  Accepts no inputs, returns nothing
  Initialize the timer and set 1ms 'tick' increments

/* Wait for specified delay time (provided in ms) */

Wait
  Accepts an unsigned int, returns nothing
  Do nothing (count) until the input time has expired			  

/* Return whether the specified timer is counting */

Active
  Accepts a char, returns a char (boolean)
  Return whether the specified timer is counting

/* Return whether the specified timer has expired */
      
Expired
  Accepts a char, returns a char (boolean)
  Return whether the specified timer has expired