|
Re: Auto off air compressior code
In C++ and Java, after you create a compressor object and call its start method it will automatically turn the compressor on and off as needed.
You need to make sure you have the pressure switch wired up to a digital input correctly and that you specify the correct spike relay and digital input for the pressure switch when you create the object.
|