EasyManua.ls Logo

Orange Pi Zero2 - Page 57

Orange Pi Zero2
88 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
56
2) First set the GPIO port to output mode, and the third parameter needs to input
the serial number of the wPi corresponding to the pin
root@orangepi:~/wiringOP# gpio mode 2 out
3) Then set the GPIO port to output low level. After setting, you can use a multimeter
to measure the value of the pin voltage. If it is 0v, it means that the low level is set
successfully
root@orangepi:~/wiringOP# gpio write 2 0
Use gpio readall to see that the value (V) of pin 7 has become 0
4) Then set the GPIO port to output high level. After setting, you can use a multimeter
to measure the value of the pin voltage. If it is 3.3v, it means that the high level is set
successfully
root@orangepi:~/wiringOP# gpio write 2 1
Use gpio readall to see that the value (V) of pin 7 has become 1
5) The setting method of other pins is similar, just modify the serial number of wPi to
the serial number corresponding to the pin.

Table of Contents

Related product manuals