Edge detection input and debounced input components

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
RGV250
Posts: 359
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 35 times
Been thanked: 39 times

Edge detection input and debounced input components

Post by RGV250 »

Also called "One shot", I wondered if it would be possible to add rising / falling edge inputs, with a debounce parameter would be good.
Also a debounced input, this could easily be done with a delay (0-25ms) added to the existing input.
They can be made with a few components but it would be a lot neater as just a component.

Regards,
Bob

BenR
Matrix Staff
Posts: 2027
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 537 times
Been thanked: 721 times

Re: Edge detection input and debounced input components

Post by BenR »

Hi Bob,

The switch components already have a debounce feature in the properties where you can set the amount of debounce time. You can then read the input state and compare to the previous input state, if they differ then you know you have just seen an edge.

Does this help?

Post Reply