1

My friend and I have been working on finding the I2C address of the Raspberry Pi, but have had no luck. We're planing on having the Raspberry pi sending data to a RoboRIO, which needs to have an address to connect to.

Anyone know it or know how to find it?

2

The I2C bus is master only. You cannot connect it as a slave, hence it does not have an address to find. The relationship between a master and a slave device is that the master may read from or write to the slave but not vice versa (which is why an address for the master is not meaningful).

  • 1
    Alright, Is it possible to bypass the parameter of a constructor like this? first.wpi.edu/FRC/roborio/stable/docs/java/… The pi will be the only device on this I2C bus so If I could read in all incomming data that would work too. – Alexander M Jan 15 '16 at 21:52
  • 1
    Any parameter which asks you for an I2C address is asking for a slave device; that's the nature of the protocol. Since the pi's bus can only be a master, you cannot use the pi for that purpose. – goldilocks Jan 15 '16 at 21:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.