I’ve written my version of this game in C. I hope you may want to write your own version, but in not, then do try my version and use it as a base to do your own experiments!

To fetch, compile and run the code:

mkdir ~/ladder
cd ~/ladder
cc -o ladder -Wall -I/usr/local/include -L/usr/local/lib ladder.c -lwiringPi -lm
sudo ./ladder

The LEDs will fire-up and in a few short seconds the game will be ready. You’re at the bottom of a well. Try to climb out!




Software — 2 Comments

  1. Hi,
    OK so far so good. I have 12 led’s flashing three times and then nothing else happens. The screen just gives the info about the capacitor. What have I done wrong this time?

    • Those three flashes are good! Then the first LED ought to be flashing once a second. If it’s not, then it sounds like the button is permanently pushed. Temporarily remove the button and see what happens…

      If that is the case, the check the wiring to the button itself