Open Willame156 opened 3 years ago
I think this tutorial might help you out with your issue https://www.instructables.com/Arduino-Dual-Function-Button-Long-PressShort-Press/
Acho que este tutorial pode ajudá-lo com seu problema https://www.instructables.com/Arduino-Dual-Function-Button-Long-PressShort-Press/
Obrigado por sua resposta. Me perdoe a demora em comentar, acabei esquecendo.
I think this tutorial might help you out with your issue https://www.instructables.com/Arduino-Dual-Function-Button-Long-PressShort-Press/
Alternatively, you could use https://tttapa.github.io/Control-Surface-doc/Doxygen/d7/d83/classAH_1_1IncrementButton.html, it already handles long and short presses for you.
Acho que este tutorial pode ajudá-lo com seu problema https://www.instructables.com/Arduino-Dual-Function-Button-Long-PressShort-Press/
Alternativamente, você pode usar https://tttapa.github.io/Control-Surface-doc/Doxygen/d7/d83/classAH_1_1IncrementButton.html , ele já lida com pressionamentos longos e curtos para você.
Obrigado tttapa, já consegui incluir o botão com duas funções usando a Control Surface
Hey Willame, can you share your code?
First of all, thanks for this great library. I ask for your help in resolving 2 issues: 1st - "button_01" send CC 2, but if more than 1 second send CC 10; 2nd - Do not read "button_01" if button_02 has pressed
//I thank you for your attention