OrangePi: Difference between revisions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
<pre>gpio readall</pre> | <pre>gpio readall</pre> | ||
Use the table to determine the correct pin. The wPi column is the ID for the pin. Use: | |||
<pre>gpio write 0 1</pre> | |||
To turn the flag off, and then: | |||
<pre>gpio write 30 0 </pre> | |||
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
Install PIP
sudo apt-get install python3-pip
Follow the instructions at https://opi-gpio.readthedocs.io/en/latest/