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

Split pulseio.PWMOut into pwmio #3299

Merged
merged 7 commits into from
Aug 25, 2020
Merged

Split pulseio.PWMOut into pwmio #3299

merged 7 commits into from
Aug 25, 2020

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Aug 18, 2020

This gives us better granularity when implementing new ports because
PWMOut is commonly implemented before PulseIn and PulseOut.

Fixes #3211

This gives us better granularity when implementing new ports because
PWMOut is commonly implemented before PulseIn and PulseOut.

Fixes micropython#3211
@tannewt tannewt added this to the 6.0.0 milestone Aug 18, 2020
@tannewt tannewt requested a review from hierophect August 18, 2020 20:12
@tannewt
Copy link
Member Author

tannewt commented Aug 18, 2020

@dhalbert We should be able to do beta releases after this.

Copy link
Collaborator

@hierophect hierophect left a comment

Choose a reason for hiding this comment

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

Looks like CI is concerned about stubs, not sure what that's about. I found a couple of mis-labeled comments but it looks good to me overall - you covered everything in Display and and the config settings that I can think of. Either this or ESP32-PulseIO will need some tweaks depending on which goes in first, of course.

ports/esp32s2/common-hal/pwmio/__init__.c Outdated Show resolved Hide resolved
ports/cxd56/common-hal/pwmio/__init__.c Outdated Show resolved Hide resolved
ports/mimxrt10xx/common-hal/pwmio/__init__.c Outdated Show resolved Hide resolved
@tannewt tannewt requested a review from hierophect August 25, 2020 06:47
@tannewt
Copy link
Member Author

tannewt commented Aug 25, 2020

Ok, everything is passing now. Please take another look.

Copy link
Collaborator

@hierophect hierophect left a comment

Choose a reason for hiding this comment

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

I have one very minor question/comment about include style but it looks good to me. Thanks for putting this together.

ports/cxd56/common-hal/pulseio/PulseOut.c Show resolved Hide resolved
@hierophect hierophect merged commit 2529c0a into adafruit:main Aug 25, 2020
@hierophect
Copy link
Collaborator

Looks good, thanks!

RichardBronosky added a commit to RichardBronosky/kmk_firmware that referenced this pull request Apr 13, 2021
Upstream in CircuitPython, they moved PWM functionality out of pulsio
into a dedicated module.

See: adafruit/circuitpython#3299
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.

Move PWMOut to new pwmio module
2 participants