#!/bin/bash COL1="255 0 0 0" COL2="0 0 0 0" COL3="0 255 0 0" COL4="0 0 255 0" TH=0 TL=40 TS=2.3 while [ 1 ] do i2cset -y 1 0x69 0x00 0x0b $COL1 $TH $TL i sleep $TS i2cset -y 1 0x69 0x00 0x0b $COL2 $TH $TL i sleep $TS i2cset -y 1 0x69 0x00 0x0b $COL3 $TH $TL i sleep $TS i2cset -y 1 0x69 0x00 0x0b $COL2 $TH $TL i sleep $TS i2cset -y 1 0x69 0x00 0x0b $COL4 $TH $TL i sleep $TS i2cset -y 1 0x69 0x00 0x0b $COL2 $TH $TL i sleep $TS done