Nei commenti ho specificato la risorsa e la direzione.
- # PTT OUT GPIO17
- sleep 5
- echo 17 > /sys/class/gpio/export
- echo 'out' > /sys/class/gpio/gpio17/direction
- echo 0 > /sys/class/gpio/gpio17/value
- # SQL_DET IN GPIO27
- sleep 2
- echo 27 > /sys/class/gpio/export
- echo 'in' > /sys/class/gpio/gpio27/direction
- # Set pin 22 out for ptt vocal
- sleep 2
- echo 22 > /sys/class/gpio/export
- echo 'out' > /sys/class/gpio/gpio22/direction
- echo 0 > /sys/class/gpio/gpio22/value
- # Set pin 23 out for fun
- sleep 2
- echo 23 > /sys/class/gpio/export
- echo 'out' > /sys/class/gpio/gpio23/direction
- echo 0 > /sys/class/gpio/gpio23/value
- #Set pin 24 in for verify power supply
- sleep 2
- echo 24 > /sys/class/gpio/export
- echo "in" > /sys/class/gpio/gpio24/direction
Nessun commento:
Posta un commento