commit 009fdc7db9fa3845d25621e19724ed6b0d769611 Author: Raspberry Pi OS Date: Thu Sep 10 11:10:43 2026 -0600 first version diff --git a/gpio.sh b/gpio.sh new file mode 100644 index 0000000..a97989b --- /dev/null +++ b/gpio.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +GPIO=$1 +value=$2 +PATH=/sys/class/gpio/chip0 + +echo "executing $0 script" +echo $GPIO > #PATH/export +echo out > $PATH/gpio$GPIO/direction +echo $value > $PATH/gpio$GPIO/value +echo GPIO > $PATH/unexport