commit a0a3811965103acc7e534eb89c5d73765e5e4a84 Author: Leonardo Mendoza Date: Thu Sep 10 11:00:00 2026 -0600 initial commit diff --git a/gpio.sh b/gpio.sh new file mode 100644 index 0000000..1fcb6de --- /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