1,232 bytes added,
00:15, 13 May 2021 {{GD Template Impl}}
==Check wringPi version==
If you use raspberry pi 4 model b, please update wringPi library from V2.50 to V2.52,
Please ignore it if you are use raspberry pi 3 model b;
[[File:UPS3-power-off-guide-1.png|none]]
==How to update wringPi V2.5 to wringPi 2.52?==
cd ~
mkdir tmp
cd tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
Then run command the following command to check the wringPi library version
gpio –v
[[File:UPS3-power-off-guide-2.png|none]]
OK, the wringPi library version is updated to V2.52 now
==Check the power off PIN of UPS 3 board==
[[File:UPS3-power-off-guide-3.png|none]]
If pin 0 and pin1 are connected, the GIPO is 6, if pin 0 and pin2 are connected, the GPIO is 13
==How to software full shut down?==
gpio -v
gpio –g mode 6 out #6 is the power off GPIO pin, 6 and 13 is optional, it depend on the previous selection
gpio readall
[[File:UPS3-power-off-guide-4.png|none]]
gpio –g write 6 1 #this is the shutdown command
<!--Add review function! -->
<comments />
<!--Please choose the -->
<!--Remove other categories, just keep the appropriate categories -->
[[Category:Raspberry pi]]
[[Category:Knowledge]]