User Manual
This demonstration will only return an error if you do not have the required library loaded into the lib folder on your
CIRCUITPY drive.
Let's use a modified version of the blinky example.
Save this file. Nothing happens to your board. Let's check the serial console to see what's going on.
We have an ImportError . It says there is no module named 'simpleio' . That's the one we just included in our code!
Click the link above to download the correct bundle. Extract the lib folder from the downloaded bundle file. Scroll
down to find simpleio.mpy. This is the library file we're looking for! Follow the steps above to load an individual library
file.
The LED starts blinking again! Let's check the serial console.
No errors! Excellent. You've successfully resolved an ImportError !
If you run into this error in the future, follow along with the steps above and choose the library that matches the one
you're missing.
import board
import time
import simpleio
led = simpleio.DigitalOut(board.D13)
while True:
led.value = True
time.sleep(0.5)
led.value = False
time.sleep(0.5)
© Adafruit Industries https://learn.adafruit.com/adafruit-metro-m4-express-airlift-wifi Page 56 of 187