I assume the switches are right next to eachother? if so, why not make it so that mode 4 can be activated by pressing 2 and 3 at the same time. To do this i would suggest that for the interrupt handler for switch 3, have a quick loop that checks button 2 for a short time (something like 20ms). If it is pressed, activate mode 4, else activate mode 3.
The "double click" can be done too, but requires a bit more logic and probably a timer.
Last edited by Kamikaze47; - 5th August 2010 at 12:01.
Reason: changed the idea slightly to fix a flaw
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
Bookmarks