adafruit / Adafruit_CircuitPython_RTTTL

Play RTTTL tunes in CircuitPython
MIT License
4 stars 12 forks source link

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

Closed tekktrik closed 2 years ago

tekktrik commented 2 years ago

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