Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero 3

263 bytes added, 15:07, 11 July 2023
26pin GPIO port test
<p>[[File:media/image173.png|576x128px]]</p></li>
<li><p>First set the GPIO port to output mode, where the third parameter requires the serial number of the wPi corresponding to the input pin</p>
{| class="wikitable" style="width:800px;" |-| <p>root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">2 </span> 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 <span style="color:#FF0000">0</span>'''</p>|}
<p>Use gpio readall to see that the value (V) of pin 7 has changed to 0</p>
<p>[[File:media/image174.png|575x128px]]</p></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 <span style="color:#FF0000">1</span>'''</p>|}
<p>Use gpio readall to see that the value (V) of pin 7 has changed to 1</p>
<p>[[File:media/image175.png|575x130px]]</p></li>
<span id="how-to-set-the-pull-down-resistance-of-pin-gpio-port"></span>
 
=== 26 How to set the pull-down resistance of pin GPIO port ===