How to code pneumatics

Does anyone know how to code a pneumatic?


SensorValue[piston]=1

If he’s using pros


 digitalWrite(piston, HIGH);

Also, you dropped this “;”

Is there any type of code for C++ on V5?

You can use the vex::digital_out class

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

Please don’t revive an old thread. If there isn’t an answer here or somewhere else on a forum, you should just start a new thread.

1 Like