gatoulisss
- Jan 23, 2015
- 36
- Joined
- Jan 23, 2015
- Messages
- 36
hello guys!
i want to use a button as on-off switch but not only.
when i press the button for 3 sec then it becomes on and it starts checking a sensor but if i dont release it then i want to make it select between 3 modes for example push button on for 5sec then mode a,push button on for 7sec then mode b,push button on for 9sec then mode c.if i release it and press it again for 3 sec then it coming to off state. any ideas with the code? thank you very much!
i want to use a button as on-off switch but not only.
when i press the button for 3 sec then it becomes on and it starts checking a sensor but if i dont release it then i want to make it select between 3 modes for example push button on for 5sec then mode a,push button on for 7sec then mode b,push button on for 9sec then mode c.if i release it and press it again for 3 sec then it coming to off state. any ideas with the code? thank you very much!