More than 5 buttons kills callbacks #3
Description
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!