View Single Post
  #9   Spotlight this post!  
Unread 01-25-2015, 08:16 PM
cad321 cad321 is online now
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 319
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
Re: Need help with arduino to i2c on roborio!

Quote:
Originally Posted by ThomasClark View Post
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.
How might one go about implementing this? Would I just plug the arduino into the usb port, set my baud rate and my port (not sure which port), and then finally use the Serial.read() command to receive what I had output over the arduino serial?
Reply With Quote