View Single Post
Old 01-03-16, 06:12 PM   #332
jeff5may
Supreme EcoRenovator
 
Join Date: Jan 2010
Location: elizabethtown, ky, USA
Posts: 2,428
Thanks: 431
Thanked 619 Times in 517 Posts
Send a message via Yahoo to jeff5may
Default

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.
jeff5may is offline   Reply With Quote