Adding 3wire devices using VSCode

Hi, I’m tying to add 3 wire devices to the V5 Brain, but the instructions I can find are for VEXCode which i don’t have installed. Is there a similar mechanism in VSCode that i’m not finding to configure the 3wire devices?

Thanks,
Nick.

It’s all the same, however, there’s no graphical configuration, you need to instantiate everything in code. For example,

vex::digital_out d1(Brain.ThreeWirePort.A);

5 Likes

Thanks, yeah I was trying to figure out how to do this programmatically and had gotten the gyro sample project. It seems i’m not getting any power out from the triport though, so figured there must be some extra setting needed somewhere. Is there a sample that has all the required commands for either the 3wire gyro and/or the 3wire accelerometer?

Thanks,
Nick.

To clarify, this is the “Accurate Turns” sample project.

No, power is always enabled (and cannot be disabled).
make sure the 3 wire cable is pushed all the way into the connector on the brain.
make sure the black wire is aligned with the “B” on the gyro connector.

5 Likes

Ok, lol ;). Works now, thanks!