Intro: Swift + Orange Pi + LEDs Semaphore
Let's give life to a sequence of blinking LEDs.
Our Red, Green and Blue LEDs will go on and off in a sequential way.
We will use Swift language, and will run this on linux
Step 1: Step 1: Orange Pi GPIO
We will use 4 pins:
- PA6: Blue LED
- PA1: Green LED
- PA0: Red LED
Step 2: Step 2: LEDs on BreadBoard
Let's place the LEDs, connecting the cathodes to the Ground.
Anodes will be connected to the pins through jumper cables. Protect the LEDs with resistors.
Avoid errors using Red, Green and Blue color cables.