Programing the compressor and pressure switch in easy C

help me please, i need to know how to figure out how to program the compressor and pressure switch in easy C

Drag InitPressureSwitch() function block into the Initialization function block. Select your pressure switch port (Digital in on RC) and the compressor relay port (relay out on RC). That function only has to be called once (by you) and will check the pressure switch every 500ms. That’s all.

P.S. If you need any help at the Philly Regional, I’ll be there as a Robot Inspector again. I had fun working with the Robolancers last year and I would be happy to help again.