Kkula
I'm trying to write code that expands on the
"Controlling_2_Outputs_With_1_Pushbutton.lsc"
example I downloaded the other day. I would like to have a counter count the number of times I close the momentary switch and cycle the timer, and therefore the output, that number of times.
I have it working now that if I hit the button for less than one second the output will set for 5 sec. I want to add a counter so that if I hit the button 3 times, the output will be set for 15 seconds, hit the button 5 times the output sets for 25 seconds, etc.
I can count the hits on a button and set the output, but I'm having trouble figuring out how to decrement the counter each time the timer times out and then get the timer to start again if the counter is still greater than 1.
I'm chasing my self in circles trying to figure out how to do that. Currently using an 0BA5 unit.
Picture of current circuit attached.
Don
Our flexible community website is a platform that allows users to connect, share information, and collaborate on various topics of interest. The website offers a range of features such as discussion forums, messaging, user profiles, event calendars, and more. Users can customize their experience by creating and joining different groups or communities based on their interests or location. The website is designed to be user-friendly and adaptable to the needs and preferences of our diverse user base. Whether you are looking to network professionally, share hobbies and interests, or simply connect with like-minded individuals, our flexible community website has something for everyone. Join us today and become a part of our thriving online community!
India
Copyright ©2025
Share this page with your family and friends.