-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathi2c
47 lines (42 loc) · 993 Bytes
/
i2c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
BUS=1
while [ 1 == 1 ]
do
i2cset -y $BUS 0x70 0x4 8
i2cdetect -y $BUS
i2cdump -y $BUS 0x50
i2cdump -y $BUS 0x51
i2cset -y $BUS 0x70 0x4 9
i2cdetect -y $BUS
i2cdump -y $BUS 0x50
i2cdump -y $BUS 0x51
i2cset -y $BUS 0x70 0x4 10
i2cdetect -y $BUS
i2cdump -y $BUS 0x50
i2cdump -y $BUS 0x51
i2cset -y $BUS 0x70 0x4 11
i2cdetect -y $BUS
i2cdump -y $BUS 0x50
i2cdump -y $BUS 0x51
i2cset -y $BUS 0x70 0x4 12
i2cdetect -y $BUS
i2cdump -y $BUS 0x50
i2cdump -y $BUS 0x51
i2cset -y $BUS 0x70 0x4 13
i2cdetect -y $BUS
i2cdump -y $BUS 0x50
i2cdump -y $BUS 0x51
i2cset -y $BUS 0x70 0x4 14
i2cdetect -y $BUS
i2cdump -y $BUS 0x50
i2cdump -y $BUS 0x51
i2cset -y $BUS 0x70 0x4 15
i2cdetect -y $BUS
i2cdump -y $BUS 0x50
i2cdump -y $BUS 0x51
i2cset -y $BUS 0x70 0x4 16
i2cdetect -y $BUS
i2cdump -y $BUS 0x50
i2cdump -y $BUS 0x51
sleep 3
done