Skip to content

Debounces a pushbutton and implements callbacks for the events click, longclick and doubleclick

Notifications You must be signed in to change notification settings

Carlo47/DebouncedPushButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DebouncedPushButton

Debounces a pushbutton and implements methods to add callbacks for the events click, longclick and doubleclick

The PushButton class implemented here solves the "debounce problem" and hides it from the user. The user only has to program his actions to be executed on a click, a longClick or on a double-click. He registers these callback functions in the button with addOnclickCB(), addOnLongClickCB() and addOnDoubleClickCB(). In his main loop() he then only calls button.loop() and the whole handling of the button actions is done.

The program shows how easy it is to use this DebouncedPushButtonclass.

About

Debounces a pushbutton and implements callbacks for the events click, longclick and doubleclick

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages