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

Make sure default ALT0 hardware PWM pin mode isn't overwritten #7

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

svenstaro
Copy link
Contributor

RPi.GPIO only supports IN and OUT pin modes but not the special PWM mode ALT0. In case hardware PWM is properly configured, the system will boot up with the pin in the correct mode. However, overwriting the pin mode will get rid of that configuration and it will render the pin useless for hardware PWM.

RPi.GPIO only supports `IN` and `OUT` pin modes but not the special PWM mode `ALT0`. In case hardware PWM is properly configured, the system will boot up with the pin in the correct mode. However, overwriting the pin mode will get rid of that configuration and it will render the pin useless for hardware PWM.
@RoboMagus RoboMagus merged commit 476f061 into RoboMagus:dev Jul 5, 2023
@svenstaro svenstaro deleted the patch-1 branch July 5, 2023 13:56
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

Successfully merging this pull request may close these issues.

2 participants