Hardware Reference
In-Depth Information
The Software for Testing the Game
All that you need now is the software to bring your game to life, but before you write that let's
write some software to test the hardware. It is vital that before you delve into the complexities of
making anything work you have conidence that the hardware is working properly. herefore, it is
common when working on a project to write some simple software to exercise the hardware. hen
you have the conidence that if the project doesn't do what you expect it to in the end, it is the
software that is wrong, not the hardware. Although Figure 8-4, earlier, showed the schematic of
the hardware, how that hardware looks to a programmer is totally diferent. Figure 8-15 shows
that. You can see here that there is a byte that represents the output to the PiFace module. he
top two bits are shown as X, which means that you don't care what state they are in. he other
bytes are shown in groups of two, each group controlling the intensity of one of the LED colours.
Figure 8-15:
his top byte
shows the
output to
PiFace.
Search WWH ::




Custom Search