Comments (3)
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.
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.
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)
- Unable to build the firmware HOT 21
- Something went wrong, please help HOT 11
- Please give me some answers these days. After struggling all night, I successfully lit it up ❥(^_-) HOT 5
- for keybon companion app, be able to disable switch layouts when window focus changes HOT 8
- dimensions needed HOT 2
- CAD design source files HOT 1
- GFX Library version issue HOT 4
- Gerber Files HOT 2
- BOM Part Package Difference HOT 2
- Can't flash bootloader keybon.generic_stm32f103c HOT 9
- dfu mode HOT 19
- icon file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keybon.