For a single solenoid
if
solenoid_0.set(true); - seems to be activating your A port (B port off)
then
solenoid_0.set(false); - would switch to activate the B port (A port off)
P.S.
You want to watch what the individual indicator lights are doing on the Pneumatic Control Module (PCM).
If your software works correctly, the status light for each solenoid will be (could be the reverse of this):
- lit=port A deactivated/port B activated
- unlit= port A activated/port B deactivated
And you should be able to see them change as your code changes the solenoid from true to false to true.
Once you are sure your code is doing what it is supposed to be doing, then look at the plumbing on the manifold. But make sure your code is operating correctly first.