|
Chapt 5. Android 12 TV system instructions
5.15.1. 26pin GPIO port test method 1) First open the wiringOP APP on the desktop
Img 5.54
2) Then click the GPIO_TEST button to open the GPIO test interface
Img 5.55
3) The GPIO test interface is shown in the figure below.
There is a one-to-one correspondence between the two rows of CheckBox buttons on the left and the 26pin pins (PC1/PI16/PI6/PH10 in the lower left corner are GPIO ports in the 13pin pins).
When the CheckBox button is checked, the corresponding GPIO pin will be set to OUT mode, and the pin level will be set to high level; when the checkbox is unchecked, the GPIO pin level will be set to low level; When the GPIOREADALL button is pressed, information such as the wPi number, GPIO mode, and pin level can be obtained.
Img 5.56
4) Then click the GPIOREADALL button, the output information is as shown in the figure below
Img 5.57
5) There are a total of 17 GPIO ports in the 26pin of the development board that can be used (if you add 4 GPIO ports in the 13pin, then there are 21 in total), and the following pin No. 7 - corresponding to GPIO is PC9 - corresponding to wPi The serial number is 2 —— as an example to demonstrate how to set the high and low levels of the GPIO port.
First click the CheckBox button corresponding to pin 7.
When the button is selected, pin 7 will be set to high level.
After setting, you can use a multimeter to measure the voltage value of the pin. If it is 3.3v, it means setting high level success
Img 5.58
6) Then click the GPIO READALL button, you can see that the current pin 7 mode is OUT, and the pin level is high
Img 5.59
7) Click the CheckBox button in the figure below again to cancel the check status. Pin 7 will be set to 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.
Img 5.60
8) Then click the GPIO READALL button, you can see that the current pin 7 mode is OUT, and the pin level is low
Img 5.61
|
|