View Single Post
  #4   Spotlight this post!  
Unread 01-10-2015, 07:26 PM
choffman123's Avatar
choffman123 choffman123 is offline
4042 Mentor
FRC #4042 (Spartan Eagles 4042)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2012
Location: Maine
Posts: 1
choffman123 is an unknown quantity at this point
Re: Need help with arduino to i2c on roborio!

I'm a lazy coder but, for a super quick turnaround, you might use a few digital IO on the roborio to interact with the arduino and have a few pins on the arduino set to input. when the arduino reads a pin is high it would change the LED modes.

on the arduino, if pin 2 is High, Blue LED's blink... Etc.

you could use 4 DIO's and then use them like binary to multiply your LED modes.

or use 1 pwm and use pulsein(); on the arduino and you could have 180 modes... we did something similar with a pot as input for our driver-station board last year.
Reply With Quote