Using GPIO w/ Orange PI
GPIO can be modified from the command line using WiringOP:
git clone https://github.com/zhaolei/WiringOP.git -b h3 cd WiringOP chmod +x ./build sudo ./build
And then tested:
gpio readall
Use the table to determine the correct pin. The wPi column is the ID for the pin. Use:
gpio write 0 1
To turn the flag off, and then:
gpio write 30 0
Install PIP
sudo apt-get install python3-pip
Follow the instructions at https://opi-gpio.readthedocs.io/en/latest/