Coder Social home page Coder Social logo

Button Library about keybon HOT 3 CLOSED

coretechr avatar coretechr commented on August 12, 2024
Button Library

from keybon.

Comments (3)

gromain avatar gromain commented on August 12, 2024

Also, you should be careful with the version of the library you used. The v2.0.0 release introduced a breaking change in the code https://github.com/JChristensen/JC_Button/releases/tag/2.0.0 .
If you don't want to do the following change, the latest version to use the original Button.h and its constructor is v1.0.1 .
Basically, you have to change the order of the parameters in the constructor of the Button.

It now looks like this:

Button button01(SW01, 5, true, true); //pin, debounce, pullup, invert
Button button02(SW02, 5, true, true); //pin, debounce, pullup, invert
Button button03(SW03, 5, true, true); //pin, debounce, pullup, invert
Button button04(SW04, 5, true, true); //pin, debounce, pullup, invert
Button button05(SW05, 5, true, true); //pin, debounce, pullup, invert
Button button06(SW06, 5, true, true); //pin, debounce, pullup, invert
Button button07(SW07, 5, true, true); //pin, debounce, pullup, invert
Button button08(SW08, 5, true, true); //pin, debounce, pullup, invert
Button button09(SW09, 5, true, true); //pin, debounce, pullup, invert

from keybon.

gromain avatar gromain commented on August 12, 2024

Also, you can add the following in setup():

  button01.begin();
  button02.begin();
  button03.begin();
  button04.begin();
  button05.begin();
  button06.begin();
  button07.begin();
  button08.begin();
  button09.begin();

from keybon.

koogar avatar koogar commented on August 12, 2024

Thanks for the reply.

I just wanted to point it out as most people will just download whatever version is on the Github, unless told.

Cheers

Rupert

from keybon.

Related Issues (13)

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.