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.

test.sh 261 B

12 years ago
1234567891011121314151617181920212223
  1. #!/bin/bash
  2. # Simple test - assumes LEDs on Pins 0-7.
  3. for i in `seq 0 7`;
  4. do
  5. gpio mode $i out
  6. done
  7. while true;
  8. do
  9. for i in `seq 0 7`;
  10. do
  11. gpio write $i 1
  12. sleep 0.1
  13. done
  14. for i in `seq 0 7`;
  15. do
  16. gpio write $i 0
  17. sleep 0.1
  18. done
  19. done