Closed DhruvaG2000 closed 3 years ago
it may well be that you are passing the wrong i2c bus as an argument to setup()
. I think we went through this in early July ? Use i2cdetect to see what i2c bus the Trill is actually connected to
I think it maybe on i2c-2
$ i2cdetect -r -y 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
That would look fine for Trill Bar
Changed the following line in the example:
88 if(touchSensor.setup(2, Trill::BAR) != 0) {
and it worked
Should we also add the IS_AM572x
flag to the examples?
No not for now. That should be in the documentation.
I was just trying out the Trill examples and it seems like there is an i2c bus issue.