adafruit / Adafruit_CircuitPython_RTTTL

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

Back up importing not working as intended #31

Closed tekktrik closed 2 years ago

tekktrik commented 2 years ago

Fix inbound shortly, just a placeholder so I don't forget - but basically I think the import logic doesn't reflect the intent of allowing pwmio if audioio isn't available , since my QTPy-ESP32-S2 should be able to use this library with pwmio but the current import structure doesn't allow it. It seems like it should only tell the user to add adafruit_waveform if audioio is detected by adafruit_waveform is not based on the logic here: https://github.com/adafruit/Adafruit_CircuitPython_RTTTL/blob/695e52c8e7e4a3172c619a0c00bdd485c04b9f8a/adafruit_rtttl.py#L190-L205