Code: Select all
SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
SPDX-License-Identifier: MIT
"""This example lights up the first and second NeoPixel, red and blue respectively."""
from adafruit_circuitplayground import cp
cp.pixels.brightness = 0.3
while True:
cp.pixels[0] = (255, 0, 0)
cp.pixels[1] = (0, 0, 255)
Even just trying to use the adafruit_circuitplayground library from the REPL gives a similar error:soft reboot
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
File "code.py", line 5, in <module>
File "adafruit_circuitplayground/init.py", line 12, in <module>
File "adafruit_circuitplayground/express.py", line 75, in <module>
File "adafruit_circuitplayground/express.py", line 58, in init
File "adafruit_circuitplayground/circuit_playground_base.py", line 98, in init
File "adafruit_lis3dh.py", line 424, in init
File "adafruit_lis3dh.py", line 119, in init
File "adafruit_lis3dh.py", line 162, in data_rate
RuntimeError: maximum recursion depth exceeded
Code done running.
Code: Select all
from adafruit_circuitplayground import cp
I've loaded the most recent stable CircuitPython runtime for the CPX. Here's my boot.txt:Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "adafruit_circuitplayground/init.py", line 12, in <module>
File "adafruit_circuitplayground/express.py", line 75, in <module>
File "adafruit_circuitplayground/express.py", line 58, in init
File "adafruit_circuitplayground/circuit_playground_base.py", line 98, in init
File "adafruit_lis3dh.py", line 424, in init
File "adafruit_lis3dh.py", line 110, in init
File "adafruit_lis3dh.py", line 363, in _read_register_byte
RuntimeError: maximum recursion depth exceeded
>>>
Looking at the latest docs: https://docs.circuitpython.org/projects ... stallation, I shouldn't need to load any extra libraries for the above code. Even when I do put the latest adafruit_circuitplayground libs from adafruit-circuitpython-bundle-8.x-mpy-20230527 into the CPX /lib folder, I get the same results.Adafruit CircuitPython 8.1.0 on 2023-05-22; Adafruit CircuitPlayground Express with samd21g18
Board ID:circuitplayground_express
UID:E5D6F93B504352504A312E312A0403FF
I also get the same results with the MU editor on my Windows machine.
Here's screenshop of my mounted CPX: