Skip to content

TimothyFran/BUTTONS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BUTTONS

An Arduino Library for simple buttons use

This arduino library is intended to manage buttons using debounce and edge detection.

Functions:

BUTTON myButton(5) to initialize a button on pin D5

myButton.begin() to begin the button using normal input myButton.begin(PULLUP) to begin the button using input pullup

myButton.read() to read the actual value of the button pin

myButton.isPressed() returns true if button goes from not pressed to pressed myButton.isReleased() returns true if button goes from pressed to not pressed

myButton.enableDebounce(time) to enable debouncing. time is debounce time in ms myButton.setDebounceTime(time) to change debounce time once enabled. time is debounce time in ms myButton.disableDebounce() to disable debounce once enabled

About

An Arduino Library for simple buttons use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages