Three Wire Ports for Pneumatics on PROS

I’m trying to set up pneumatics on PROS and I’m not sure how to do it. What I have right now is
extern pros::ADIDigitalOut flywheelPiston; on my globals.hpp file and

pros::ADIDigitalOut flywheelPiston(???); on my globals.cpp file.

The question marks is because I don’t know how to connect it to the three wire ports, I looked at the API already but it doesn’t seem to be working.

I’m trying to connect to Port A on the 3 wire port, so if anyone can tell me the syntax it would be much appreciated!

pros::ADIDigitalOut flywheelPiston(1);, pros::ADIDigitalOut flywheelPiston('a');, and pros::ADIDigitalOut flywheelPiston('A'); should all work. What about the API wasn’t working?

1 Like

Ohhh I was just missing the quotations marks haha

Thank you, it’s my first time using pros, still getting used to it lol