This is an old revision of the document!
Log into your student account and proceed to the c4eng file: Enter your username and password
“cd” into c4eng with the command:
user@lab46:~$ cd src/fall2024/c4eng
type grabit, followed by c4eng ptb1 to pull the project from the server:
user@lab46:~/src/fall2024/c4eng$ grabit c4eng ptb1
Enter into the ptb1 file. If you're using a raspberry pi, enter into the wiring_pi file. If you're using a pico, enter into the pi_pico file. Access the ptb1.c file and alter accordingly.
The raspberry pi electronics kits came with small, lego-sized, rectangular prism-shaped bars containing 10 independent LED lights. These LED lights are not connected in series or parallel, and each light must be individually wired in order to properly function. The LEDs appear to be red, and the entire bar fits nicely right on the raspberry pi breadboard and occupies 10 adjacent rows. In stl2, we used these bars to create 8 or 10-bit binary counters. In this project, we are using these same bars to create another binary counter, but now we are adding buttons to reverse the order of the lights and begin counting down from the highest number possible.