How to enable importing WM8960 library #12691
-
How the MicroPython v1.21.0 on 2023-10-06; i.MX RT1010 EVK with MIMXRT1011DAE5A
Type "help()" for more information.
>>> import wm8960
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'wm8960'
>>> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
yes, you have to copy the file WM8960.py to the board's file system. The file is located in micropython-lib at https://github.com/micropython/micropython-lib/tree/master/micropython/drivers/codec/wm8960. You can use any suitable tool, e.g. mpremote, to upload the file to the board. |
Beta Was this translation helpful? Give feedback.
-
Thank you for answer and showing me location of the file. |
Beta Was this translation helpful? Give feedback.
yes, you have to copy the file WM8960.py to the board's file system. The file is located in micropython-lib at https://github.com/micropython/micropython-lib/tree/master/micropython/drivers/codec/wm8960. You can use any suitable tool, e.g. mpremote, to upload the file to the board.