Skip to content

Updates play_file to work with 3.0 #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 2 commits into from
May 22, 2018
Merged

Conversation

kattni
Copy link
Contributor

@kattni kattni commented May 21, 2018

Still needs touchio support as well as the recently updated version of LIS3DH to really work with 3.0, but both are external issues. Once in place, this lib should work with 3.0.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you for updating this!

audio.play()
while audio.playing:
pass
if sys.implementation.version[0] == 3:
Copy link
Member

Choose a reason for hiding this comment

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

Do >= instead of == so it works on 4.0.0 and beyond.

@kattni
Copy link
Contributor Author

kattni commented May 22, 2018

@tannewt Done.

My general intention is to remove the 2.x specific stuff once 3.0 is released. We're already so tight on memory that I think it would be worth it. We won't be updating 2.x eventually anyway so the lib can remain frozen as-is.

@tannewt
Copy link
Member

tannewt commented May 22, 2018

@kattni removing after 3.0.0 is released sounds good to me! I just know I forget sometimes. :-)

@tannewt tannewt merged commit d82fb23 into adafruit:master May 22, 2018
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request May 25, 2018
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