Pierre wrote:The only disadvantage is that I need to change the times in the code when I want to change the switch on or off times.
Regards
Pierrre
Or, you could create a data file holding those constants, which your main code reads for the values. Lesser chances of you inadvertently (mis)editing the code.
That way, to change those values you merely edit the dat file.
Regards,
Anand