Log in

View Full Version : How to use MXP


Cobra Commander
20-01-2015, 13:22
How do you program using pins from the MXP.
Generally your set up looks something like this

DigitalInput light = new DigitalInput(DIO Port HERE);

But on the MXP the numbers reset back to 0 so how do I define which port I'm using?:

Joe Ross
20-01-2015, 13:41
See http://wpilib.screenstepslive.com/s/4485/m/13809/l/145309-java-conventions-for-objects-methods-and-variables

Cobra Commander
21-01-2015, 12:45
Thank you I found my answer within that link!