fivdi / bot-io Goto Github PK
View Code? Open in Web Editor NEWADC, GPIO, PWM, UARTs, and more on the BeagleBone Black
License: MIT License
ADC, GPIO, PWM, UARTs, and more on the BeagleBone Black
License: MIT License
I'm going to make the assumption that bot-io
isn't actually used by anyone and update everything to support the 4.1.x kernel. These changes will result support for the 3.8.x kernel being dropped.
I have found that if you issue something like 5 buttons............
button3 = new bot.Button(bot.pins.p9_13); button4 = new bot.Button(bot.pins.p9_14); button5 = new bot.Button(bot.pins.p9_15); button6 = new bot.Button(bot.pins.p9_16); button7 = new bot.Button(bot.pins.p9_18);
Then assign them all callbacks like:
`button3.on('pressed', function () {
console.log("#3 pressed");
});
button4.on('pressed', function () {
console.log("#4 pressed");
});
button5.on('pressed', function () {
console.log("#5 pressed");
});
button6.on('pressed', function () {
console.log("#6 pressed");
});
button7.on('pressed', function () {
console.log("#7 pressed");
});`
You must hit 1 button.. then hit a DIFFERENT button before that same button you hit initially will fire its callback again. I have not found the blocking issue as of yet. But I am hopeful someone might know.
To be clear... If I remove a button (say 3) and remove the callback for pressed for 3 as well. The next time I run the application I can spam button 4 over and over and it continues to say button 4 pressed.
The bug is that with greater than 4 buttons it introduces some type of blocking issue where you have to fire off a new buttons callback handler before you can repeat the previous button's handler.
Is that clear? I am in desperate need of some help here as I have a project that I am using your lib for and have had all boards all fabbed up and now am failing :) Any input on this would be awesome!
FYI: I have tried mapping different pins around etc and it's no change. The second I add a new button (going over 4 buttons) this behavior kicks in no matter what pin i map the button to.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.