Page 1 of 1
BL0145 Debounce
Posted: Fri Sep 18, 2026 11:35 am
by chipfryer27
Hi
Just wondering if the component macro for the BL0145 eBlock contains a debounce value? It probably has but I don't see any value and the source code isn't yet available in the WiKi.
Regards
Re: BL0145 Debounce
Posted: Fri Sep 18, 2026 1:15 pm
by medelec35
Hi Iain.
There is a way to add debounce, but that means using Component Debugger and exposing full component tree.
I could add the debounce to the Bl0145 and let Ben decide if it is to be added to components database or not.
Re: BL0145 Debounce
Posted: Fri Sep 18, 2026 1:24 pm
by chipfryer27
Hi Martin
I was just about to write some code to prototype using some eblocks, which will involve those switches. Knowing if they have debounce or not would help. The individual switch component does include a default debounce but not seeing anything for the BL0145. Being an eblock any debounce would be better in code.
I could just use individual switch components, but thought I'd ask first.
Regards
Re: BL0145 Debounce
Posted: Fri Sep 18, 2026 1:59 pm
by medelec35
I think debounce is a missing function I should have added at the very start.
Can you try the attached and see if it's a function worth including.
@Ben If you would like the source and component I will add it to the additional folder

Re: BL0145 Debounce
Posted: Fri Sep 18, 2026 2:19 pm
by chipfryer27
Hi Martin
Thanks for that. Appreciated.
Not able to try on hardware yet but it certainly looks like it will do exactly as needed.
Regards
PS
I think it worth including as being an eBlock, to include any hardware debounce is not really feasible and although I could create a debounce routine, having it as part of the component is far, far better.
Re: BL0145 Debounce
Posted: Fri Sep 18, 2026 2:26 pm
by medelec35
Your Welcome.
I had to make a minor cosmetic change.
Can you download the same file again, please.
Re: BL0145 Debounce
Posted: Fri Sep 18, 2026 2:35 pm
by chipfryer27
Hi
Still looks good. What was the change? as any difference must have been trivial
Regards
Re: BL0145 Debounce
Posted: Fri Sep 18, 2026 5:11 pm
by medelec35
It was the description.
It shows up as tool tips when the function is hovered over.
I had to add it for the latest version.