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

Check what happens when sharing PWM channel pins #100

Open
martinohanlon opened this issue Mar 2, 2023 · 0 comments
Open

Check what happens when sharing PWM channel pins #100

martinohanlon opened this issue Mar 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@martinohanlon
Copy link
Collaborator

We should investigate what happens when PWM channel pins are shared.

PWMOutputDevice will check and only allow 1 PWM device per PWM channel.

e.g. if you try and create PWMLED objects on pin 2 and pin 18 you will be presented with an error. This is because they share the same channel and the output on 1 pin will interfere with the output on another.

However... if you create a PWMLED on pin 2 and a DigitalLED on pin 18 you wont be presented with an error. This is based on the assumption that only 1 pin is using the PWM channel so all is fine... However I am not sure that this is true and we should check. I am also not sure what would happen if you had an PWMOutputDevice on pin 2 and an InputDevice on pin 18!

@martinohanlon martinohanlon added the bug Something isn't working label Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant