View Full Version : RIODuino I2C Address
SquishyIce
21-01-2015, 09:21
Hi all, I was just looking through the Wire class for Arduino, and I was wondering what the address for the RIODuino was, or at least some way to find it. I looked all through REV Robotics' documentation for the RIODuino, but they did not seem to make any references to the I2C address.
timytamy
21-01-2015, 09:27
You're trying to use it as a slave?
If so, you get to chose the address. In your setup() function you should declare this like so.
Wire.begin(I2C_ADDR);
Check out the rest of the Wire library documentation (http://arduino.cc/en/Reference/Wire) to set up handlers etc
SquishyIce
21-01-2015, 10:17
Thanks, I COMPLETELY missed that second constructor. This is what happens when I go researching things late at night. :P
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.