I just received a new Feather M4 CAN Express board. I followed the directions (I hope) to put circuitpython on the board.
I'm using the MU editor, and it can see and edit code.py.
The version of circuitpython is 7.3.0.
I tried the simple LED flash program (as per https://learn.adafruit.com/adafruit-fea ... iting-code). It downloaded and ran without an error, but no flashing of LED. (NOTE that the small yellow LED next to the USB-C connector was flashing very quickly).
So I then tried the neopixel example (as per https://github.com/adafruit/Adafruit_Le ... on/code.py). The code notes that it needs the neopixel library, so I got the circuitpython bundle for 7.x and put the neopixel.mpy into d:\lib.
Here is the code:
Code: Select all
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
Blink example for boards with ONLY a NeoPixel LED (e.g. without a built-in red LED).
Includes QT Py and various Trinkeys.
Requires two libraries from the Adafruit CircuitPython Library Bundle.
Download the bundle from circuitpython.org/libraries and copy the
following files to your CIRCUITPY/lib folder:
* neopixel.mpy
* adafruit_pixelbuf.mpy
Once the libraries are copied, save this file as code.py to your CIRCUITPY
drive to run it.
"""
import time
import board
import neopixel
pixels = neopixel.NeoPixel(board.NEOPIXEL, 1)
while True:
pixels.fill((255, 0, 0))
time.sleep(0.5)
pixels.fill((0, 0, 0))
time.sleep(0.5)
time.sleep(0.5)
Code: Select all
code.py output:
Traceback (most recent call last):
File "code.py", line 20, in <module>
MpyError: Incompatible .mpy file. Please update all .mpy files. See http://adafru.it/mpy-update for more info.
Code done running.