Pneumatics in C++ or C++ Pro

#1

Hello. I am wondering how can I program a Pneumatic in C++ and C++ Pro. Is the code the same as in Robot C or PROS because I found a conversation about it? Thank you all the help.

0 Likes

#2

Also, if I use it in C++, how would I put it into the robot configuration page?

0 Likes

#3

You can use the vex::digital_out class

vex::digital_out solenoid(Brain.ThreeWirePort.A);
solenoid.set(true);
0 Likes

#4

This post was flagged by the community and is temporarily hidden.

0 Likes