EasyC No hold Pnuematics 1 Button

Hey all
I am the programmer for team 6855 and recent our drive decided that he wanted the pneumatics for our claw on 1 button. Push it one time and it closes Push it another time and it releases. Does anybody know how to do this? Sample code would be great.

EasyC or ROBOTC?

Based on the title, I’m guessing he or she is working with EasyC :slight_smile:

Ah yes, so there’s a block called JoystickToDigitalLatch that should do the job.