Skip to content

Commit 4bc5cfc

Browse files
committed
fix audioio import for boards without it (and docs)
1 parent 9a580b5 commit 4bc5cfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

simpleio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
try:
3535
import audiocore
3636
except ImportError:
37-
import audioio as audiocore
37+
try:
38+
import audioio as audiocore
39+
except ImportError:
40+
pass # not always supported by every board!
3841
try:
3942
from audioio import AudioOut
4043
except ImportError:

0 commit comments

Comments
 (0)