|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Receiving data from Arduino over i2c?
just doing some off-season tinkering.
Students got comms going from Java to a RIODuino over I2C just fine; the Arduino Wire library's receive_slave example hooks up perfectly to the WPIlib I2C class write methods. We're stumped on receiving data from the RIODuino. We added a onRequest handler to the Arduino receive_slave example. If we do a Code:
boolean b = rioDunio.read(44, yy.length, yy); If we do a Code:
boolean b = rioDunio.readOnly(yy, yy.length); Code:
Wire.write("hello ");
Has anyone successfully read data from an Arduino using I2C? We're prepared to do serial (and know how), but we are really trying to figure out the pros and cons of both, and want to make sure that we have an accurate idea of limitations of I2C between a RoboRIO and Arduino... |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|