I bought some Raspberry Pi and now some Orange Pi but I never play with GPIO … It’s time to use it.
First we have to understand what kind of GPIO are present on the board connector, for example in the case of Orange Pi we have the following GPIO.
Not bad! But what about software? On Raspberry Pi there is the interesting WiringPi lib that allow you to use in a very simple manner all this GPIOs. Like
WiringPi is a GPIO access library written in C for the BCM2835 used in the Raspberry Pi.
On the Orange Pi One there is a porting on this software available on github, we can install it using the following commands.
git clone https://github.com/zhaolei/WiringOP.git -b h3
chmod +x ./build
The last command allow you to read the state of GPIO directly from the shell.
Where are my relays?!?!?