I didn't do the compressor deed. It is defined in comments as a digital output on pin d5. If this is bad syntax, then inpump, outpump, and compressor outputs are all called incorrectly. I just pasted the logic tree (based on the flowchart) into the loop.
In that case, you can substitute digitalwrite commands in where I set variables. For example, where I set outpump true, you should substitute it for digitalwrite(outpump, true) or digitalwrite(outpump,high). That should fix my wrong approach.
Don't forget to copy and paste variable names and capitalize stuff. The arduino ide is rather archaic in this respect, just like the indeterminate comments you spoke of. I actually pasted your code into a c++ editor to add my code into the loop. I haven't used a code editor as lacking in substance since the early 80's. It really is painful to use. One wrong move and you're dead.
|