Switches - Three Approaches

No doubt you have probably made use of some buttons or switches in your projects. I thought I would share three different approaches to using them.

  1. The Momentary Push Button
    In this situation - if you press and release the button - it returns to its original position which is a normally open condition. While pressed, the light is on. If you remove your cursor or release the mouse button - it does not remain pressed. You must hold your mouse over the button and keep your mouse button pressed.

  2. The Persistent Hold - Single
    In this situation if you press and release the button - it remains pressed. You must press the button a second time to release it.

  3. The Persistent Hold - Double
    In this situation you have two buttons but they are linked. If you press the green button it will go down but it will force the red button up. If you press the red button down the green one will go up. Press green down for ON and red down for OFF. Each press will maintain position until the other button is pressed.

Here is a quick view of an example of each situation.
Where have you used these types of buttons in your own projects.
Let’s talk about them in the comments.
Are you interested in how I made any of these situations work?

Looking forward to hearing from you!

buttons

3 Likes