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
BL0145 Debounce
-
chipfryer27
- Valued Contributor
- Posts: 2111
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 470 times
- Been thanked: 700 times
-
medelec35
- Valued Contributor
- Posts: 2422
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 773 times
- Been thanked: 833 times
Re: BL0145 Debounce
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.
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.
Martin
-
chipfryer27
- Valued Contributor
- Posts: 2111
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 470 times
- Been thanked: 700 times
Re: BL0145 Debounce
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
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
-
medelec35
- Valued Contributor
- Posts: 2422
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 773 times
- Been thanked: 833 times
Re: BL0145 Debounce
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
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
- Attachments
-
- Switch_BL0145.fcpx
- (6.02 KiB) Downloaded 3 times
Martin
-
chipfryer27
- Valued Contributor
- Posts: 2111
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 470 times
- Been thanked: 700 times
Re: BL0145 Debounce
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.
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.
-
chipfryer27
- Valued Contributor
- Posts: 2111
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 470 times
- Been thanked: 700 times
Re: BL0145 Debounce
Hi
Still looks good. What was the change? as any difference must have been trivial
Regards
Still looks good. What was the change? as any difference must have been trivial
Regards