User Manual
Now open the lib folder. When you open the folder, you'll see a large number of mpy files and folders
Example Files
All example files from each library are now included in the bundles, as well as an examples-only bundle. These are
included for two main reasons:
Allow for quick testing of devices.
Provide an example base of code, that is easily built upon for individualized purposes.
Copying Libraries to Your Board
First you'll want to create a lib folder on your CIRCUITPY drive. Open the drive, right click, choose the option to create
a new folder, and call it lib. Then, open the lib folder you extracted from the downloaded zip. Inside you'll find a
number of folders and .mpy files. Find the library you'd like to use, and copy it to the lib folder on CIRCUITPY.
This also applies to example files. They are only supplied as raw .py files, so they may need to be converted to .mpy
using the mpy-cross utility if you encounter MemoryErrors . This is discussed in the CircuitPython Essentials
Guide (https://adafru.it/CTw). Usage is the same as described above in the Express Boards section. Note: If you do not
place examples in a separate folder, you would remove the examples from the import statement.
Example: ImportError Due to Missing Library
If you choose to load libraries as you need them, you may write up code that tries to use a library you haven't yet
loaded. We're going to demonstrate what happens when you try to utilise a library that you don't have loaded on your
board, and cover the steps required to resolve the issue.
© Adafruit Industries https://learn.adafruit.com/adafruit-metro-m4-express-airlift-wifi Page 55 of 187