The code for this project may be found in Github. To check out the code, run the following commands:
git clone https://github.com/alfmel/rpi_leds.git cd rpi_leds git checkout part2
In Part 1 I learned how to turn an LED on and off. Not something really exciting. For this next part I want to hook up several LEDs and turn them on and off in a sequence, and if possible, more than one sequence. Because I'll be working with object-oriented code and trying to explain its merits, this will be a long post.
The code for this project may be found on Github. To check out the code, run the following commands:
git clone https://github.com/alfmel/rpi_leds.git cd rpi_leds git checkout part1
Disclaimer: I am teaching myself how to program the Raspberry Pi, often following the examples of others. I am not an expert beyond what I put here.
With Arch Linux installed on my Raspberry Pi Zero it was time to figure out how to install the RPi libraries for Python. All other Raspberry Pi distros (like Raspbian) come with those libraries pre-installed. But since I wanted to use Arch Linux, manually installing the RPi libraries is part of the fun (or experiment in my case).