Skip to content

Commit

Permalink
Make audiocore import work on older CircuitPython
Browse files Browse the repository at this point in the history
If there is no audiocore, use audioio instead.
  • Loading branch information
deshipu committed Jul 30, 2019
1 parent 0b8e6b0 commit 0d2d660
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stage.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import time
import array
import digitalio
import audiocore
import audioio
try:
import audiocore
except ImportError:
audiocore = audioio

import _stage


Expand Down

0 comments on commit 0d2d660

Please sign in to comment.