Skip to content

Instantly share code, notes, and snippets.

View taitsmith's full-sized avatar

tait taitsmith

View GitHub Profile
@taitsmith
taitsmith / setGpio.sh
Created October 23, 2017 00:19
ezpz RPi GPIO
#!/bin/bash
#cobbled together by Tait
#put it in your $PATH and run it as sudo
#validate input
if [[ $2 == *[!0-9]* ]]; then
echo "Valid pin required"
exit 1
fi