Simple push button and toggle switch debounce library for Arduino and ESP8266 that reports number of clicks and length
The main features of the DebounceEvent library are:
- Supports push buttons and toggle switches
- Reports # of clicks and length (in millis) of the last click
- Allows to define internal pull-ups
- Isolation between buttons
- Create modular code using callbacks
See examples.
Copyright (C) 2015-2018 by Xose Pérez
The DebounceEvent library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The DebounceEvent library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the DebounceEvent library. If not, see http://www.gnu.org/licenses/.