OrangePi: Difference between revisions
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
<pre>gpio write 30 0 </pre> | <pre>gpio write 30 0 </pre> | ||
== Python == | |||
Install PIP | Install PIP |
Revision as of 04:16, 13 April 2018
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
Python
Install PIP
sudo apt-get install python3-pip
Follow the instructions at https://opi-gpio.readthedocs.io/en/latest/