(0)| 1/16/2023 4:34 PM | |
|
Joined: 2/23/2017 Last visit: 12/21/2025 Posts: 47 Rating:
|
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 (501 Downloads) |
| 1/16/2023 6:29 PM | |
|
Joined: 6/11/2019 Last visit: 1/18/2026 Posts: 2729 Rating:
|
Do you mean something like this? Ella_68 AttachmentStufentaster.zip (511 Downloads) |
| 1/16/2023 7:17 PM | |
|
Joined: 2/22/2008 Last visit: 4/25/2025 Posts: 2698 Rating:
|
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 (581 Downloads) |
Follow us on