PDA

View Full Version : SetDirection Function Call


aeasson
02-02-2008, 03:34 PM
Our team is using EasyC.
On page 33, the WPLIB manual states that for all controllers it is necessary to set the direction for any ports used for digital I/O – identifying each as either used for input or output.
However, I cannot find the SetDirection in the EasyC environment.
If it is not a built in function, then what are the possible values for direction in the function call.
Thank you

TubaMorg
02-02-2008, 05:06 PM
Actually, EasyC has a GUI utility that makes setting the Digital I/O ports as easy as clicking the mouse. A picture of the RC comes up and you click on the I/O pins an the arrow toggles indication whether it is in or out. Check EasyC help on how to do it. Of course you can always make any WPILIB call with a user function call....

Kingofl337
02-04-2008, 09:58 AM
Press "F5" on your keyboard.