Maximite 2: How to make switch trigger only once when pressed


Author Message
Decoy
Senior Member

Joined: 02/08/2019
Location: Denmark
Posts: 109
Posted: 05:40am 03 Dec 2020      

  Tinine said  Still too many lines of code for my liking but I have never used the PULSIN function...Would that be an option?

Edit: Hmmm, I guess that the PULSIN would hold up execution (?) which is a no-no for me.


Well, one thing - I prefer debouncing in hardware rather than code. Or that is how I usually do it. I also do not need a very fast read. It should fit with a finger pressing a button.

As Jim states above, maybe a solution would need to include a different outcome when the switch is held.

.