Commit dbea48d2 authored by Nicholas Gar Hei Chan's avatar Nicholas Gar Hei Chan
Browse files

Added hardware check for sample.sh

parent e93e4e3f
#!/bin/bash
gpio mode 0 in
gpio mode 1 out
if grep -q "Raspberry Pi" /proc/cpuinfo; then
gpio mode 0 in
gpio mode 1 out
gpio write 7 1
sleep 0.2
gpio read 0
gpio write 7 0
else
echo 1
fi
gpio write 7 1
sleep 0.2
gpio read 0
gpio write 7 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment