Giter VIP home page Giter VIP logo

debounce's Issues

INPUT_PULLUP is inconstant to the readme

In the readme, it appears that only if you put the 3rd variable in the Debounce Button(2,80,true) that it appears that the pull_down is default, where the default is true.

It might be best to change Debounce.h from
25 Debounce(byte button, unsigned long delay = 50, boolean pullup = true);

to
25 Debounce(byte button, unsigned long delay = 50, boolean pullup = false);

Examples don't match with invert

With the addition of the invert, the examples with a custom delay no longer work as this has become ambiguous. When a custom delay is wanted, I guess this makes the extra parameters required?

From one of the examples:
Debounce Button2(button2, 70); // Button2 debounced, custom 70ms delay.
This now generates an error:
call of overloaded 'Debounce(byte&, int)' is ambiguous

This would work though:
Debounce Button2(button2, 70, false, false);

Button Off Time (High) is same as delay time

Debounce Button1(button1, 30000,false,false);
//if delay is 30 seconds then led will turn on after 30 seconds but it will remain on for another 30 seconds after button is release.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.