GithubHelp home page GithubHelp logo

clickbutton's Introduction

ClickButton

  • Jan 2016, update to Libraries 2.0

A library that decodes multiple clicks on one button. Also copes with long clicks and click-and-hold.

Usage:

ClickButton buttonObject(pin [LOW/HIGH, [CLICKBTN_PULLUP]]);

where LOW/HIGH denotes active LOW or HIGH button (default is LOW) CLICKBTN_PULLUP is only possible with active low buttons.

Returned click counts:

A positive number denotes the number of (short) clicks after a released button A negative number denotes the number of "long" clicks

clickbutton's People

Contributors

jenesaisdiq avatar ls6 avatar pkourany avatar tedder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

clickbutton's Issues

Is there a way to put clickButton in a 'simple mode'?

I love this module, but I've got a project where I don't need the full functionality - I really only need the ability to track whether/not a button was pressed, not discern between the various types of presses that might be done. Is there a config or set of settings I could apply to basically just get it to tell me whether/not a button was pressed, irrespective of length, etc?

Raspberry Pi Support?

I've long used this library on my Particle boards, but recently moved my project to a Raspberry Pi. The RPi required some changes to the library to work successfully. Now that the Particle IDE is also targeting the RPi, I'm curious if you'd like to work together to support both the Particle boards and the RPi in this library?

I have some changes complete but will need to do some more testing to ensure it's 100% compatible with both product families.

Needs INPUT_PULLDOWN as well

This lib, as it was written for a regular ATMega328, doesn't support INPUT_PULLDOWN, only PULLUP. It would be a nice addition.

Library not valid

Hi friend,
I have this issue:
When I load Labrary from Arduino IDE prompt I receive:
"Trovata libreria non valida in /Users/antedoro/Documents/Arduino/libraries/clickButton-master: Missing 'maintainer' from library".
Can you help me?

thanks
Vincenzo

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.