Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 5 Plus

436 bytes added, 10:32, 7 June 2023
40 PIN GPIO Port -to -Plattering resistance setting method
<p>[[File:media/image532.png|576x147px]]</p></li>
<li><p>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</p>
{| class="wikitable" style="width:800px;" |-|<p>[orangepi@orangepi ~]$ '''gpio mode <span style="color:#FF0000">2 </span> in'''</p>|}</li>
<li><p>After the setting is set to input mode, execute the following command to set the GPIO port as the pull -down mode</p>
{| class="wikitable" style="width:800px;" |-|<p>[orangepi@orangepi ~]$ '''gpio mode <span style="color:#FF0000">2 </span> up'''</p>|}</li>
<li><p>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</p>
{| class="wikitable" style="width:800px;" |-|<p>[orangepi@orangepi ~]$ '''gpio read <span style="color:#FF0000">2</span>'''</p><p>'''1'''</p>|}</li>
<li><p>Then execute the following command to set the GPIO port as the drop-down mode</p>
{| class="wikitable" style="width:800px;" |-|<p>[orangepi@orangepi ~]$ '''gpio mode <span style="color:#FF0000">2 </span> down'''</p>|}</li>
<li><p>Then enter the command below to read the level of the GPIO port. If the level is 0, it means that the drop -down mode is set successfully</p>
{| class="wikitable" style="width:800px;" |-|<p>[orangepi@orangepi ~]$ '''gpio read <span style="color:#FF0000">2</span>'''</p><p>'''0'''</p>|}</li></ol>
<span id="pin-spi-test-2"></span>
 
=== 40 PIN SPI test ===