Giter Club home page Giter Club logo

mybutton_arduino's Introduction

MyButton Library for Arduino IDE

Demo using the readInSteps function (check the MyButton_SSD1306_multibutton example for code)

Making buttons easy and fun to work with

To discover what this library offers, read the docs: https://mybutton-arduino.readthedocs.io/en/latest/index.html.

How to install ?

1 - Through the Arduino Library manager:

Go to tools -> Manage Libraries... -> Type MyButton and as shown in the picture below, you'll find the MyButton library.

2 - Direct download/import:

Click on Download ZIP to download the library, place the unzipped folder into your libraries folder in your arduinosketchfolder/libraries/PUT_HERE(on Windows, this is likely to be under Documents/Arduino/libraries, on linux this is under home/Arduino/libraries). You may need to create the libraries subfolder if its your first library. Now, restart the IDE.

Change LOG

v2.0.3 (10th March, 2022)

  • Added readInProvidedSteps() to MyButton, to achieve similar behavior to the readMultiple() but continiously getting the reached step, not only on the falling edge.

v2.0.2 (9th March, 2022)

  • Added readRawClick() to MyButton, to get the non-debounced raw state (click) of the button.

v2.0.1 (26th January, 2022)

  • Created MyCountingButton library, didn't test it thoroughly though, just made sure that all functionalities work as intended.
  • Created a documentation on readthedocs.org, which is present under the docs/ folder.
  • Updated this readme.
  • Created two examples for the MyCountingButton library.

v1.1.0 (24th August, 2021)

  • The major change is that, there were some compatibility issues with Arduino, and now the examples work with both the Arduino UNO, and the ESP32 (Only tested on an UNO and an ESP32, gonna try to test on an ESP8266 soon).

v1.0.2 (24th August, 2021):

  • Added debouncing to readInSteps() and made it return a ABORTED_STEPS value when the user stops pressing in the middle of the pressing period without reaching the intended stepped-period.
  • Updated the Display API (wrapper class to the Adafruit_SSD1306 library) to make it more efficient and more intuitive, no change in how it works though.
  • Grouped the state variables used for all functions into a single uint8_t flag saving with this 3 bytes of memory.
  • Added multiple buttons driven animations example.

v1.0.1 (22nd August, 2021):

The readRisingClick() was repeatedly reporting a "rising edge" detection as long as the button was pressed, so fixed that, and now it's reporting only the detection of the rising edge, as it's supposed to do.

mybutton_arduino's People

Contributors

rad-hi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.