1/16/2023 4:34 PM | |
Joined: 2/23/2017 Last visit: 8/23/2024 Posts: 37 Rating: (0) |
Hello there, A few weeks ago, I made this small program. The request was: 1 push button but two different functions possible ("options") - either connected to I1 or I2 2 lighting circuits Options pressing (cycling) push button: I1: 00-01-10-11 (all OFF - circuit 1 ON and circuit 2 OFF - circuit 1 OFF and circuit 2 ON - both circuits ON) I2: 01-10-11 and a long button press = 00 (i.e. >0.5 sec will set all OFF) I've made this code (in attachment) that works very well but I'm curious if there is a better/simpler way to do something like this Any advice? Roger AttachmentRelais 00-10-01-11 avec un seul poussoir.zip (456 Downloads) |
1/16/2023 6:29 PM | |
Joined: 6/11/2019 Last visit: 11/18/2024 Posts: 2322 Rating: (102) |
Do you mean something like this? Ella_68 AttachmentStufentaster.zip (468 Downloads) |
1/16/2023 7:17 PM | |
Joined: 2/22/2008 Last visit: 11/18/2024 Posts: 2698 Rating: (208) |
See attachment for the easiest way, but it's not exactly the same function. The timer can also be removed, because all 4 combinations are integrated. Regards, Scorp AttachmentCycleSwitch1.zip (524 Downloads) |
Follow us on