|
|
@ -433,18 +433,3 @@ tput smcup
|
|
|
|
refreshpins
|
|
|
|
refreshpins
|
|
|
|
display
|
|
|
|
display
|
|
|
|
mainmenu
|
|
|
|
mainmenu
|
|
|
|
|
|
|
|
|
|
|
|
################################################
|
|
|
|
|
|
|
|
#pi@pizero:/sys/class/gpio/gpio2 $ cat direction
|
|
|
|
|
|
|
|
#out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pi@pizero:/sys/class/gpio/gpio2 $ cat edge
|
|
|
|
|
|
|
|
#none
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pi@pizero:/sys/class/gpio/gpio2 $ cat uevent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pi@pizero:/sys/class/gpio/gpio2 $ cat value
|
|
|
|
|
|
|
|
#0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# gp=/sys/class/gpio
|
|
|
|
|
|
|
|
# for pin in `ls $gp`; do if [[ "$pin" == "gpio"* && "$pin" != *"chip"* ]]; then dir=`cat $gp/$pin/direction`;[ `cat $gp/$pin/value` -eq 0 ] && echo "pin $pin ($dir) disabled" || echo "pin $pin ($dir) enabled";fi; done
|
|
|
|
|
|
|
|