stripe.sh 437 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. COL1="255 0 0 0"
  3. COL2="0 0 0 0"
  4. COL3="0 255 0 0"
  5. COL4="0 0 255 0"
  6. TH=0
  7. TL=40
  8. TS=2.3
  9. while [ 1 ]
  10. do
  11. i2cset -y 1 0x69 0x00 0x0b $COL1 $TH $TL i
  12. sleep $TS
  13. i2cset -y 1 0x69 0x00 0x0b $COL2 $TH $TL i
  14. sleep $TS
  15. i2cset -y 1 0x69 0x00 0x0b $COL3 $TH $TL i
  16. sleep $TS
  17. i2cset -y 1 0x69 0x00 0x0b $COL2 $TH $TL i
  18. sleep $TS
  19. i2cset -y 1 0x69 0x00 0x0b $COL4 $TH $TL i
  20. sleep $TS
  21. i2cset -y 1 0x69 0x00 0x0b $COL2 $TH $TL i
  22. sleep $TS
  23. done