Changes

Jump to: navigation, search

Orange Pi 5 Plus

247 bytes added, 17:43, 6 June 2023
40 pin GPIO port test
orangepi@orangepi5plus:~$ '''sudo blink_all_gpio       #Remember to add sudo permission'''
[sudo] password for orangepi:                               '''#A password is required here'''
|}
</div></li>
<li><p>First set the GPIO port to output mode, where the third parameter needs to input the serial number of wPi corresponding to the pin</p>
{| class="wikitable" style="width:800px;" |-|<p>root@orangepi:~/wiringOP# '''gpio mode 2 out'''</p>|}</li>
<li><p>Then set the GPIO port to output a low level. After setting, you can use a multimeter to measure the voltage value of the pin. If it is 0v, it means that the low level is set successfully.</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>root@orangepi:~/wiringOP# '''gpio write 2 0'''</p>
|}
<p>Use gpio readall to see that the value (V) of pin 7 has changed to 0</p>
<div class="figure">
</div></li>
<li><p>Then set the GPIO port to output a high level. After setting, you can use a multimeter to measure the voltage value of the pin. If it is 3.3v, it means that the high level is set successfully.</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>root@orangepi:~/wiringOP# '''gpio write 2 1'''</p>
|}
<p>Use gpio readall to see that the value (V) of pin 7 has changed to 1</p>
<div class="figure">

Navigation menu