-
Notifications
You must be signed in to change notification settings - Fork 182
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
Implement PWM Trait #166
Comments
Yep, you are correct in that assessment. If I recall correctly, the reason that is the case is that the period is shared among all channels, so period changes would affect more than just a single pin. Off the top of my head, I'm not sure what the best way to add the functionality would be, but if you're interested I'd gladly try to point you in the right direction for where to look to fix this. |
I have just checked the embedded_hal version = "0.2.3", and it seems perfectly fine: there is no period setter in the PwmPin. The only difference is that every function name starts with a try_, and try return a result. so it could be implemented based on the current implementation... |
I think this is fixed now, feel free to re-open if I'm missremembering |
For me as a stupid novice it looks like this crate does not implement the Pwm trait from the embedded-hal.
https://docs.rs/embedded-hal/0.2.3/embedded_hal/trait.Pwm.html
However, it seems to me, as if only the
set_period
andget_period
functions are missing.What a pity that these are the functions I need right now 😔
The text was updated successfully, but these errors were encountered: