|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
Re: I2C Rangefinders not working
For the RoboRio, the I2C library changed to 7 bit addressing so the range is 1 to 128 instead of 2 to 254. The default address is 112 to the RoboRio.
The Arduino library uses 8 bit addressing. I don't think this is officially documented anywhere. For example I used the Arduino example code to set the address to 4 and then accessed the sensor on address 2 from the RoboRio. The clock and data do need external 120 ohm pullups also. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|