8,367
edits
Changes
→How to install Wiringop
== How to install Wiringop ==
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that Wiringop has been pre -installed in the Linux image released by Orange Pi. Unless Wiringop's code is updated, it is not necessary to re -download and install. Just use it directly.'''
'''The storage path of the compiled Wiringop's Deb is wrapped in Orangepi-Build: '''
'''<span style="color:blue">orangepi-build/external/cache/debs/arm64/wiringpi_x.xx.deb</span>'''
'''After entering the system, you can run the gpio readall command. If you can see the output below, it means that wiringOP is pre -installed and can be used normally.'''</big>
<div class="figure">
</div>
<big>'''wiringOP is currently adapted to set the GPIO port input output, set the GPIO port output high and low level, and set the function of pulling and down resistance. It is impossible to use functions like hardware PWM.'''</big>|}
# Download the code of Wiringop
::{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''sudo apt update'''
orangepi@orangepi:~$ '''git clone https://github.com/orangepi-xunlong/wiringOP.git -b next'''
|}
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''Note that Orange Pi 3B needs to download the code of the wiringOP next branch, please don't miss the parameter of -b next.'''
'''If there is a problem with the download code from GitHub, you can use the wiringOP source code that comes with the Linux image directly, and the storage location is:/usr/src/wiringOP'''</big>|}
<ol start="2" style="list-style-type: decimal;">
<li>Compile and install wiringOP</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''cd wiringOP'''
orangepi@orangepi:~/wiringOP$ '''sudo ./build'''
|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Test the output of the GPIO Readall command as follows</li></ol>
<div class="figure">
[[File:pi3b-img258.png]]
</div></ol>
<span id="pin-interface-gpio-i2c-uart-spi-and-pwm-test"></span>
== 40Pin interface GPIO, I2C, UART, SPI, and PWM test ==