I’m trying to get my RGB Rotary Encoder working but I don’t see any data changing on the i2c bus when I change the knob.
It shows up properly (address 0x0f
):
pi@magicmirror:~/debug $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- 0f
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- 3d -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
But when I try reading from it:
pi@magicmirror:~/debug $ i2cdump -y 1 0x0f
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
40: 85 a7 c2 19 62 11 00 10 02 00 00 00 00 00 00 00 ????b?.??.......
50: e3 00 00 00 00 00 30 30 00 00 00 01 00 00 00 01 ?.....00...?...?
60: 01 00 00 b4 00 00 00 00 80 00 07 01 01 00 79 c0 ?..?....?.???.y?
70: 00 fb 00 bf 00 80 00 00 00 00 00 00 00 f8 09 00 .?.?.?.......??.
80: 45 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E?..............
90: 8c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?...............
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
c0: 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 ...?............
d0: 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 85 86 87 xyz{|}~?????????
e0: 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 95 96 97 ????????????????
f0: 00 00 00 00 00 00 00 00 00 00 6a e2 03 00 00 00 ..........j??...
Then turning the knob:
pi@magicmirror:~/debug $ i2cdump -y 1 0x0f
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
40: 85 a7 c2 19 62 11 00 10 02 00 00 00 00 00 00 00 ????b?.??.......
50: e3 00 00 00 00 00 30 30 00 00 00 01 00 00 00 01 ?.....00...?...?
60: 01 00 00 b4 00 00 00 00 80 00 07 01 01 00 79 c0 ?..?....?.???.y?
70: 00 fb 00 bf 00 80 00 00 00 00 00 00 00 f8 09 00 .?.?.?.......??.
80: 45 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E?..............
90: 8c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?...............
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
b0: 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?...............
c0: 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 ...?............
d0: 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 85 86 87 xyz{|}~?????????
e0: 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 95 96 97 ????????????????
f0: 00 00 00 00 00 00 00 00 00 00 6a e2 03 00 00 00 ..........j??...
The only change is at b0 (00
→ 06
) but that seems to change with every read regardless if the knob is turning or not.