@Lazar-Demin said in Omega2+: Battery Level with Power Dock 2:
@Fabrizio-Codello Just tested out the code with a Power Dock 2 and it still works.
Note that only the Power Dock 2 has an ADC circuit for detecting the battery level. The older Power Dock 1 does not have this same functionality - might be the cause of the issue you're seeing.
@Lazar-Demin Ah, dang
@Marko-Lukat said in Omega2+: Battery Level with Power Dock 2:
For the record, that's exactly the response you get when there is no ADC at the expected address (I2C: 0x4D). Which suggests tool and h/w don't match. What does
i2cdetect -y 0
produce?
root@Omega-67F5:~# i2cdetect -y 0
@Marko-Lukat This is the output:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I guess i have the first one and can't do much about it