I have been a member for a while now and have been quietly programming for about 6 months.
I have been experimenting with all your excellent ideas like Large LCD Font, Rotary switches, Linear light dimmers etc and have recently decided to make an automatic watering system for my new house. Only 5 months old. How hard could it be I said,.....fatal last words.
I know there is "24Timers" by Mitchy but
A: I like learning,
B It’s actually pretty complicated to follow.
My trouble has been that my unorthodox style has led my program to run slower and slower each time I use one of my 4 override timer. (The actual daily timer has not been attempted yet). I am running one 4x20 LCD screen that has 4 separate menu screens. Each menu selectable via a variable resistor.
One of my timers is as follows, there are four of them
If ClearButton = 1
Sec1 = 0
Sec11 = 0
Min1 = 0 Else
If IncrementButton = 1
Sec1 = Sec1 + 60 //Increment 1 minute at a time
Min1 = Sec1 / 60
If Sec1 > 0 Then
Sec1 = Sec1 - 1 // Count down
Min1 = Sec1 / 60 // Used to display minutes
Sec11 = Sec1 - (Min1 * 60) // Used to display seconds
DelayMS(1000) // Count down one second at a time
Example of one of the four selectable menu screens. menu
LCD.WriteAt(1,1," Front Lawn Timer ")
LCD.WriteAt(2,1," Overide",DecToStr(Min1,2),":",DecToStr(Sec11,2),"Sec ")
The program does have a real time clock running in the back ground (Zero-Sum/Zero Cumulative Error Method by Warren Schroeder alias xor) - To be used later. Does not seem to affect speed of opperation.
If anyone can give a simple example of multiple countdown timers (other than "24Timers") that runs smoothly I would be grateful. - GAV ....