ss0g / debounceevent

Simple push button and toggle switch debounce library for Arduino and ESP8266 that reports number of clicks and length

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DebounceEvent

Simple push button and toggle switch debounce library for AVR and ESP8266 platforms under the Arduino framework that reports number of clicks and length

version license
donate twitter

Features

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

Usage

See examples.

License

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/.

About

Simple push button and toggle switch debounce library for Arduino and ESP8266 that reports number of clicks and length

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 64.0%Language:Python 36.0%