8,367
edits
Changes
→26pin GPIO port test
1) First click the Wiringop icon to open the Wiringop App<br><br>
[[Image:Pi-5-details2-pic32.png]]<br><br>
2) wiringOP APP 的主界面显示如下图所示,然后点击 '''The main interface of the Wiringop app is displayed as shown in the figure below, and then click the GPIO_TEST''' 按钮打开 GPIO测试界面button to open the GPIO test interface<br><br>
[[Image:Pi-5-details2-pic33.png]]<br><br>
3) The GPIO 测试界面如下图所示,左边的两排 '''test interface is shown in the figure below. The two rows of the CheckBox''' 按钮跟 26pin 引脚是一一对应的关系。当勾选 '''button on the left and the 26PIN pin are one -to -one relationship. When checking the CheckBox''' 按钮时,对应的 GPIO 引脚会被设置为 '''button, the corresponding pin will be set to OUT''' 模式,引脚电平设置为高电平;当取消勾选时,GPIO 引脚电平设置为低电平;当点击右边的 '''mode, the pin level settings will be set. For high levels, when the check -up is canceled, the pin level is set to a low level; when clicking the GPIO READALL''' 按钮时,可以获取到 wPi 号、GPIO 模式、引脚电平等信息。button on the right, you can get the WPI, GPIO mode, pin level information, etc.<br><br>
[[Image:Pi-5-details2-pic34.png]]<br><br>
4) 然后点击 '''Then click the GPIO READALL''' 按钮,输出信息如下图所示:button, and the output information is shown in the figure below<br><br>
[[Image:Pi-5-details2-pic35.png]]<br><br>
5) 开发板 26pin 中总共有 16 个 GPIO 口可以使用,下面以 7 号引脚——对应 GPIO 为 GPIO1_C6 ——对应 wPi 序号为 2——为例演示如何设置 GPIO 口的高低电平。首先点击 7 号引脚对应的 '''Taking the high and low level of the GPIO2_D4 as an example, click the CheckBox''' 按钮,当按钮为选中状态时,7 号引脚会设置为高电平,设置完后可以使用万用表测量引脚的电压的数值,如果为 '''button in the figure below. When the button is selected, the GPIO2_D4 is set to a high level. After setting, you can use the value of the voltage of the pins by the multimeter. If it is 3.3v''',说明设置高电平成功, Explain that setting high -electricity is successful<br><br>
[[Image:Pi-5-details2-pic36.png]]<br><br>
6) 然后点击 '''Then click the GPIO READALL''' 按钮,可以看到当前的 7 号引脚模式为 '''button to see that the pins mode of the current GPIO2_D4 is OUT''',引脚电平为高电平, and the pin level is high level<br><br>
[[Image:Pi-5-details2-pic37.png]]<br><br>
7) 再次点击下图的 '''Click the CheckBox''' 按钮取消勾选状态,7 号引脚会设置为低电平,设置完后可以使用万用表测量引脚的电压的数值,如果为 '''button in the figure below to cancel the check status. The GPIO2_D4 pin is set to a low level. After setting, you can use the value of the voltage of the multimeter to measure the pins.If it is 0v''',说明设置低电平成功, the low -power flat is set.<br><br>
[[Image:Pi-5-details2-pic38.png]]<br><br>
8) 然后点击 '''Then click the GPIO READALL''' 按钮,可以看到当前的 7 号引脚模式为 OUT,引脚电平为低电平button to see that the pins mode of the current GPIO2_D4 is OUT, and the pin level is low<br><br>
[[Image:Pi-5-details2-pic39.png]]<br><br>