To start with, we will write a simple, short piece of Python just to check that all ten of our LEDs are working, and we know which GPIO pin controls which pair of LEDs. Power on your Pi Zero and connect to it via SSH.
Writing our Python program
Testing our LEDs
To check that our LEDs are all correctly wired up and that we can control them using Python, we will write this short program to test them.
First, move into our project directory by typing this:
cd ~/WearableTech/
Now, make a new directory for this chapter by typing this:
mkdir Chapter3
Now, move into our new directory:
cd Chapter3
Next, we create our test program by typing this:
nano testLED.py
Then, we enter the following code into Nano:
#!/usr/bin/python3...