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)
Save this file. Nothing happens to your board. Let's check the serial console to see what's going on.
We have an
ImportError
Click the link above to download the correct bundle. Extract the lib folder from the downloaded bundle file. Scroll
down to find
simpleio.mpy
file.
The LED starts blinking again! Let's check the serial console.
No errors! Excellent. You've successfully resolved an
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.
Library Install on Non-Express Boards
If you have a Trinket M0 or Gemma M0, you'll want to follow the same steps in the example above to install libraries as
© Adafruit Industries
. It says there is
no module named 'simpleio'
. This is the library file we're looking for! Follow the steps above to load an individual library
https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51
. That's the one we just included in our code!
!
ImportError
Page 67 of 183
Need help?
Do you have a question about the Feather M4 Express and is the answer not in the manual?