* The order of lamps is default 1-2-3-4 and after that set by last switch turned off and time out.
* If last switch off =
* 1 gets seq 1 = 1-2-3-4
* 2 gets seq 2 = 2-3-4-1 + special trick #2 (see below).
* 3 gets seq 3 = 3-4-1-2 + special trick #3 (see below).
* 4 gets seq 4 = 4-3-2-1.
* Condition for reset is: All switches off AND at least one switch learned AND reset_time elapsed (4 seconds)--- then resets to new
* seq determined by last switch off, 1-2-3 or 4.
*
* #2 special trick on sequence 2 is started when in seq 2 all lamps are ON:
* - a) remove 2 lamps
* - allow the user to swap or not the lamps
* - they remain ON but the switches will follow later on
* - b) if the lamps have been swapped, turn OFF the 2 other lamps
* start with right switch first then the left one (associated to the both other lamps)
then you can switch the swapped lamps in the order you wish...
* if the lamps have not been swapped turn OFF one left switch first then another switch located at the right of the first one
*
* - repeat subsequence a to b how often you want
* - then finish the sequence with all LEDs OFF
* - new seq is as usual determined by last switch off, 1-2-3 or 4.
*
* #3 special trick on sequence 3 is started when in seq 3 at least 2 lamps are ON:
* - a) switch OFF one of the 2 lamps
* - wait 4 seconds during which remove the color cap of the corresponding switch
* - switch the capless switch ON but the LED does not turn ON,
* - you can turn it OFF/ON how often you wish but do not wait more than 4 seconds when OFF
* - you can turn ON then OFF another LED and perform the capless trick. If more than one cap is removed remember the initial position of the caps...
* - now everytime you turn OFF a capless switch and keep it OFF more than 4 sec, it will become active again. Before switching it ON, set the cap on top the switch !
* - you can even finish with all caps removed if you take care to keep at least one switch in ON position.
*
* - repeat subsequence a how often you want
* - then finish the sequence with all switches OFF
* - new seq is as usual determined by last switch off, 1-2-3 or 4.
*
*
* The device can be locked to be given to the audience.
* There are 2 ways to lock the device,
* 1) go to sequence 3, then enter the special sequence and do it for all 4 switches
* All switches are ON with all LEDs OFF ==> you've locked the switchboard.
* 2) remove the battery, turn ON switch 2 only, replace the battery
* which means that now and until unlock, there is a virtual direct connection of Switchs and leds (1-1, 2-2, 3-3, 4-4)
*
* to unlock the device, remove the battery, turn ON swotch 1 only and insert the battery back
*
* Remember to start unit with all switches in OFF (open) state.
*
* turn ON wifi if boot occurs with both Switchs 1 & 2 grounded (ON posiiton)