gast2-mon.sh 185 Bytes
Newer Older
Fjen Undso's avatar
Fjen Undso committed
1
2
3
4
5
6
7
8
9
set -x

    #Luma Cont R    G    B
BUS=(0x10 0x12 0x16 0x18 0x1a)
VAL=(35   75   98   94   100)

for i in ${!BUS[*]}; do
    ddccontrol dev:/dev/i2c-12 -r ${BUS[$i]} -w ${VAL[$i]}
done