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

implement PWM mock functionality #6

Open
2bndy5 opened this issue Aug 5, 2024 · 1 comment
Open

implement PWM mock functionality #6

2bndy5 opened this issue Aug 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@2bndy5
Copy link
Owner

2bndy5 commented Aug 5, 2024

PWM is done via pwmio.PWMOut class.

The pulseio module might also be relevant and similarly implemented (at a glance).

@2bndy5 2bndy5 added the enhancement New feature or request label Aug 5, 2024
@2bndy5
Copy link
Owner Author

2bndy5 commented Aug 7, 2024

Given that the duty cycle might be calculated, it might be a good idea to let SetDutyCycle constructor accept a specified range.

Note

Reading the duty cycle may have different behavior depending on which board is used. This implementation detail shall be neglected, unless a better approach is discovered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant