You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
165 B

#!/bin/bash
gpio mode 7 out
for i in `seq 1 10`
do
if [ $(($i%2)) == 0 ]
then
gpio write 7 0
else
gpio write 7 1
fi
sleep 1
done