My First Viking Longship
Helm: LED.c
Home
The Game

Water Craft

Helm

     Software
     Electronics
Communications

Gems of Wisdom
Media
Pseudocode helm.c helmstatemachine.c LED.c iButton.c Test harness

The LED displays are run through a set of shift registers and octal buffers. A refresh cycle occurs every 600 ms. At each refresh cycle, two bytes are shifted in that control the status of all the LEDs through the octal buffers. This module encodes the LEDs and provides an interface to independently turn them on and off.

The full collection of C files may be found here.