Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   RIODuino I2C Address (http://www.chiefdelphi.com/forums/showthread.php?t=133269)

SquishyIce 21-01-2015 09:21

RIODuino I2C Address
 
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

Re: RIODuino I2C Address
 
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.
Code:

  Wire.begin(I2C_ADDR);
Check out the rest of the Wire library documentation to set up handlers etc

SquishyIce 21-01-2015 10:17

Re: RIODuino I2C Address
 
Thanks, I COMPLETELY missed that second constructor. This is what happens when I go researching things late at night. :P


All times are GMT -5. The time now is 02:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi