|
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.
|