I have designed a PCB for a single temperture input to control 3 relay o/ps it works great, but now I want to connect a LCD display to show temp & what zone is active. I am using a single line 1X16 Hitachi LM020L display I put the intial LCD config in front of analog program and nothing works, I add in a new time delay not using my analog ones and still no work, does any body have any code for this.
Make sure your contrast is wired up correctly. Seems like 90% of the people who can't get an LCD to work didn't supply the right contrast voltage.
You're using "double" in your C code for no reason. These take the time of hundreds or thousands of integer ops and should only be used when nothing else will do. You could do the same job with a 32 bit integer, just do some quick calcs while coding to make sure it won't blow your max/min values.