How to Program a Single Push Button with Two Different Functions

Here is the video and code for my latest video where I code in real time on a live stream. A short press will enable or disable the blink function. A long press will display humidity while the button is being pressed and stop when released but it won’t affect the blink function.

Watch the Video

View the Code

 

 

Leave a Reply

Your email address will not be published.