Skip to content

Add PWMOut protocol #12

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
Apr 21, 2022
Merged

Add PWMOut protocol #12

merged 3 commits into from
Apr 21, 2022

Conversation

tekktrik
Copy link
Member

A PWMOut protocol is needed for when Blinka doesn't define it, but a library uses it for type annotations. This is at least needed for adafruit_motor since it can be used via adafruit_motorkit on Blinka, but currently fails because some platforms don't implement PWMOut (see adafruit/Adafruit_CircuitPython_MotorKit#45).

I'm adding it here as opposed to the library because I'm not sure if this will come up again. If it makes more sense to define in the library itself up in the typing block, I'm happy to move things there!

Merging this (or moving into adafruit_motor will allow a for a fix to be written for the aforementioned issue.

@tekktrik tekktrik requested a review from a team April 21, 2022 03:14
Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dhalbert dhalbert merged commit 98cb267 into adafruit:main Apr 21, 2022
@tekktrik tekktrik deleted the dev/add-pwmout branch December 1, 2022 03:58
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