Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Changing PWM frequency #90

Open
TeXitoi opened this issue Jul 28, 2018 · 1 comment
Open

Changing PWM frequency #90

TeXitoi opened this issue Jul 28, 2018 · 1 comment

Comments

@TeXitoi
Copy link
Collaborator

TeXitoi commented Jul 28, 2018

Hi!

I need to change PWM frequency, but the API doesn't allow it. The main problem is that changing the frequency change the frequency of all the channels, and there is no PwmTimer object.

Maybe instead of returning a tuple, an object should be returned that allow to access to the channels, allow to change the frequency, and extract the Pwm objects.

If that's OK, we can talk about the details (breaking change or not, tuple struct with public fields or Into<(Pwm1, Pwm2)>...) and I can take care of the implementation.

@TeXitoi
Copy link
Collaborator Author

TeXitoi commented Jul 28, 2018

I didn't see, but that's 'just' implement the embedded_hal::Pwm trait.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant