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

Duty Cycle #33

Open
AntonioFromBrazil opened this issue Aug 25, 2023 · 2 comments
Open

Duty Cycle #33

AntonioFromBrazil opened this issue Aug 25, 2023 · 2 comments

Comments

@AntonioFromBrazil
Copy link

Is there anyway to read the duty cycle in addition to the frequency value ? Thanks

@antst
Copy link

antst commented Nov 3, 2023

Yep, that would be nice addition :)
I was trying to sort out through the code, how to add. But I am not good enough to quickly grasp how to add second interrupt on second edge, so we have interrupts on both, rising and falling, edges.
In principal, if we quick with reading, we can set interrupt on change (can we?), which covers both edges, and add reading state of the pin, to know on which edge we are. Or, maybe, use two pins, one for rising edge, another of falling.

@antst
Copy link

antst commented Nov 3, 2023

I checked, in FreqMeasure, there is already functionality for rising/falling edges. Will try to wrap my head around )

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

2 participants