ILoveControl Posted February 26, 2014 Share Posted February 26, 2014 Hi all, I am looking for guidance and best practice when it comes to programming. What does one use when wanting to do a check of variables every say 1 minute or hour. Example:I want to check certain variables i.e.: Are the sprinklers onIs the Alarm Armed or has it triggered Based on these I want to then set certain LED's on my key pad. Does one use a timer and use the expires event to trigger the check of the variables or does one use a scheduler? When does one typically use a timer and or scheduler. Looking forward to your guidance Link to comment Share on other sites More sharing options...
RAV Posted February 26, 2014 Share Posted February 26, 2014 When the sprinkler variable changes and if sprinkler is true set LED on keypad "door" to blue.When alarm varaible changes and if alarm is true set LED on keypad "bedroom" to red, if false set to black Don't need a timer or scheduler, it's the change in status that's the trigger. If you need to only set the sprinkler when the alarm is true then:When the sprinkler changes and if it's ture and if the alarm is true then set LED on keypad.... Link to comment Share on other sites More sharing options...
ILoveControl Posted February 26, 2014 Author Share Posted February 26, 2014 Thank you that makes total sense! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.