My first PicAxe project, and the completion of something that has been part built and busy gathering dust at the back of a cupboard for more than a decade. It's not very useful in itself, basically just mild entertainment, but it's enabled me to get to grips with PicAxe on something that's relatively straightforward, in preparation for more serious stuff ahead. The game is very simple -- there are 5 different coloured LEDs with matching buttons. The LEDs flash in a pseudo-random sequence that gets progressively more difficult to follow, and you have to press the buttons in the same sequence. Getting it right advances your score and getting it wrong or getting too far behind ends the game. This game may well have an official name, but I don't know it.
Attached are the hardware design and coding for the PicAxe. I chose to do the switch de-bouncing in HW because it is simple and reliable and also because I was uncertain of the SW latency. On the SW side, I get the impression that I could have put the values for LedSeries and InjectorSeries in as table data, though what is actually possible is not clear to me at the moment. If anyone could clarify this then I'd be grateful.
View attachment Spede.DSN
View attachment Spede.bas
Attached are the hardware design and coding for the PicAxe. I chose to do the switch de-bouncing in HW because it is simple and reliable and also because I was uncertain of the SW latency. On the SW side, I get the impression that I could have put the values for LedSeries and InjectorSeries in as table data, though what is actually possible is not clear to me at the moment. If anyone could clarify this then I'd be grateful.
View attachment Spede.DSN
View attachment Spede.bas