Quote:
Originally Posted by ThomasClark
This I2C tutorial will still work on a roboRIO, if you make a couple changes. Mainly, your robotInit() method just needs to have this:
Code:
public void robotInit() {
i2c = new I2C(I2C.Port.kOnboard, 168);
}
Another easy way would be to just use USB. Use the SerialPort class in your Java code to send data to the Arduino, and use Serial.read() on the Arduino to get the data. This has the advantage that it's really easy to test using the Serial Console in the Arduino IDE.
|
Thank you! That helps out a lot!
