Skip to content

Ttp223b sensor button lib for handling clicks.

Notifications You must be signed in to change notification settings

Icmus23/ttp223b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Button Events Handler

TTP223B Digital Touch Sensor and Tactile buttons lib for handling click events.

Lib helps to handle click events for sensor and tactile buttons. Supported events:

  • short click
  • long click
  • double click

You can specify button sensitivity for each event, and set rattle value for specific button, by changing the next constants. Values specified in millis. Default values:

# button_click.ino

#define SHORT_CLICK_EVENT_INTERVAL 150
#define DOUBLE_CLICK_EVENT_INTERVAL 300
#define LONG_CLICK_EVENT_INTERVAL 500
#define RATTLE_VALUE 200

About

Ttp223b sensor button lib for handling clicks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages