Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starts out working well but then sends multiple button presses. #53

Open
mchristofas opened this issue Apr 25, 2017 · 1 comment
Open

Comments

@mchristofas
Copy link

I have the dash button press triggering a python script that blinks lights my Pimoroni Led strip. If i restart node-red it all behaves as expected (1 button press = 1 run of the script blinking lights in a night rider fashion) with 1 run shown in the debug log. After some time the debug shows 2 or 3 messages from 1 button press and the light patterns become erratic as if 2 or 3 threads of the script running. If i manually inject the trigger it all works as expected. Is there a way to debounce the button presses?

@mchristofas
Copy link
Author

mchristofas commented Apr 25, 2017

Looking at the output from findbutton i see that it's processing both udp and arp for a single press.
Even setting index.js to use arp i see only arp in findbutton but still see multiple in debug log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant