Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 5 Plus

410 bytes added, 10:25, 7 June 2023
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 OPI OS Arch image released by Orange PI. Unless Wiringop's code is updated, it is not necessary to re -download and compile and install it,just use it directly.'''
'''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>
[[File:media/image530.png|434x308px]]
<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>|}
<ol style="list-style-type: decimal;">
<li><p>Download the code of wiringOP</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>[orangepi@orangepi ~]$ '''sudo pacman -Syy git'''</p>
<p>[orangepi@orangepi ~]$ '''git clone https://github.com/orangepi-xunlong/wiringOP.git -b next'''</p>
|} {| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big><p>'''Note that Orange Pi 5 Plus needs to download the code of the wiringOP next branch, please don't miss the parameter of -b next。'''</p><p>'''If you have a problem with the download code from github, you can download the source code compression package of wiringOp.tar.gz in the [http://www.orangepi.online/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-5-plus.html '''official tools of the Orange Pi 5 Plus data download page''']'''</p></big> <p>[[File:media/image531.png|356x88px]]</p>|}</li>
<li><p>Compile and install wiringOP</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>[orangepi@orangepi ~]$ '''sudo pacman -Syy make gcc'''</p>
<p>[orangepi@orangepi ~]$ '''cd wiringOP'''</p>
<p>[orangepi@orangepi wiringOP]$ '''sudo ./build clean'''</p>
<p>[orangepi@orangepi wiringOP]$ '''sudo ./build'''</p>|}</li>
<li><p>Test the output of the GPIO Readall command as follows</p>
<p>[[File:media/image530.png|568x403px]]</p></li></ol>
<span id="pin-interface-gpio-i2c-uart-spi-can-and-pwm-test-1"></span>
 
== 40 PIN interface GPIO, I2C, UART, SPI, CAN and PWM test ==