You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using a Pwm to control some motors on Pico 2.
I noticed that when the Pwm goes out of scope, it leaves them running. I looked at the drop implementation and there seems to be a difference between Pwm and PwmOutput. Using the two channels split as PwmOutput works as expected. Here is the implementation for reference:
Hi, I am using a Pwm to control some motors on Pico 2.
I noticed that when the Pwm goes out of scope, it leaves them running. I looked at the drop implementation and there seems to be a difference between
Pwm
andPwmOutput
. Using the two channels split asPwmOutput
works as expected. Here is the implementation for reference:This one works as expected:
embassy/embassy-rp/src/pwm.rs
Lines 398 to 427 in af02310
This one leaves the pins in an incorrect state, the part about pull down is missing:
embassy/embassy-rp/src/pwm.rs
Lines 485 to 495 in af02310
Reproduction
Unexpected:
Expected:
The text was updated successfully, but these errors were encountered: