打开输出:
sudo echo 27 > /sys/class/gpio/export
sudo echo out > /sys/class/gpio/gpio27/direction
sudo echo 1 > /sys/class/gpio/gpio27/value
关闭输出:
sudo echo 0 > /sys/class/gpio/gpio27/value
打开输出:
sudo echo 27 > /sys/class/gpio/export
sudo echo out > /sys/class/gpio/gpio27/direction
sudo echo 1 > /sys/class/gpio/gpio27/value
关闭输出:
sudo echo 0 > /sys/class/gpio/gpio27/value