Skip to content

Only error if both imports cannot be found, otherwise use pwmio #32

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 1 commit into from
Jul 22, 2022

Conversation

tekktrik
Copy link
Member

@tekktrik tekktrik commented Jul 19, 2022

Based on using this with my QTPy ESP32-S2, I think the intent is to try and use audioio and adafruit_waveform if possible, but default to pwmio if needed (if not both, in other words, tell the user to add adafruit_waveform ONLY if audioio is available). This fixes an issue with the logic currently preventing usage of this library on boards without audioio. Tested with Adafruit CircuitPython 8.0.0-alpha.1 on 2022-06-09; Adafruit QT Py ESP32S2 with ESP32S2.

Fixes #31

@tekktrik tekktrik requested a review from FoamyGuy July 19, 2022 06:46
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

@FoamyGuy FoamyGuy merged commit 8546db0 into adafruit:main Jul 22, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 22, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_CLUE to 3.0.8 from 3.0.7:
  > Updated name

Updating https://github.com/adafruit/Adafruit_CircuitPython_Colorsys to 2.0.9 from 2.0.8:
  > Removed double license

Updating https://github.com/adafruit/Adafruit_CircuitPython_Dash_Dis to 1.1.8 from 1.1.7:
  > Replaced name

Updating https://github.com/adafruit/Adafruit_CircuitPython_Ducky to 1.0.7 from 1.0.6:
  > Updated name

Updating https://github.com/adafruit/Adafruit_CircuitPython_RTTTL to 2.4.15 from 2.4.14:
  > Merge pull request adafruit/Adafruit_CircuitPython_RTTTL#32 from tekktrik/fix/fix-pwmio
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.

Back up importing not working as intended
2 participants