Giter Site home page Giter Site logo

bot-io's People

Contributors

fivdi avatar hugs avatar ril3y avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hugs

bot-io's Issues

More than 5 buttons kills callbacks

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!

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.