Skip to content

RP2040 PWM driver now supports pre-scaler #277

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

Merged
merged 3 commits into from
Jun 1, 2023

Conversation

runger1101001
Copy link
Member

The PWM driver for RP2040 now uses the pre-scaler (which includes a fractional setting) to accurately set any desired PWM frequency between 1Hz and 66kHz. Why so low as 1Hz? To support use cases like controlling a RC-servo (possible via the SimpleDC Library DCDriver1PWM class).

@runger1101001 runger1101001 merged commit ca541b7 into simplefoc:dev Jun 1, 2023
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.

1 participant