Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 3B

598 bytes added, 13:57, 11 August 2023
40Pin GPIO Port -down and downward pull -down resistance setting method
=== 40Pin GPIO Port -down and downward pull -down resistance setting method ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the 4 GPIO pins below Orange Pi 3B are invalid because there are 3.3V on the outside, so setting drop -down is invalid. Other pins can be set normally'''
[[File:pi3b-img262.png|center]]</big>|}
# Below the No. 11 pin—corresponding to GPIO 3_C6-corresponding WPI serial number 5—to demonstrate how to set up and down pull-down resistance of the GPIO port
::[[File:pi3b-img263.png]]
<ol start="2" style="list-style-type: decimal;">
<li>First of all, you need to set the GPIO port as the input mode. The third parameter needs to enter the serial number of the wpi corresponding to the pins</li></ol>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">5 </span> in'''|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li>After the setting is set to input mode, execute the following command to set the GPIO port as the pull -down mode</li></ol>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">5 </span> up'''|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then enter the following command to read the level of the GPIO port. If the level is 1, it means that the drawing mode is successful</li></ol>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP# '''gpio read <span style="color:#FF0000">5''' '''1</span>'''
'''<span style="color:#FF0000">1</span>'''
|}
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Then execute the following command to set the GPIO port as the drop-down mode</li></ol>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">5 </span> down'''|}</ol>
<ol start="6" style="list-style-type: decimal;">
<li>Then enter the following command to read the level of the GPIO port. If the level is 0, it means that the drop -down mode is set successfully</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP# '''gpio read <span style="color:#FF0000">5</olspan>'''
root@orangepi:~/wiringOP# '''gpio read 5<span style="color:#FF0000">0</span>'''|}</ol><span id="pin-spi-test"></span>
'''0'''
 
<span id="pin-spi-test"></span>
=== 40pin SPI Test ===