Hi,
Not used to communicating on a forum, but here goes. Please advise if this ought to be posted elsewhere.
I have created a a controller, that, when the home alarm is triggered, will illuminate four spotlights around the house.
When the alarm is not triggered, the four lights can all be simultaneously set on or off, or independently be
set on for a selectable period.
The code spans more than 1250 lines, of which 1000 is probably in-line comments and white space.
My concern is that the three primary buttons used for setting the lights individually, are "sluggish" (An understatement).
The code is riddled with Switch Case statements, which is probably the cause.
I would like to know if anybody out there may be interested at looking at the code, with suggestions of making it more effective.
I have posted the code as an attachment, should some kind soul read this post and may offer advice or assistance.
Hoping someone finds my message in a bottle!
FloodLightController.ino (46 KB)