#Did you get the latest bundle for 8 1 0

1 messages · Page 1 of 1 (latest)

normal minnow
#

Yes. I've tried running my python code with and without the bundled adafruit_circuitplayground library (in the CPX lib folder)

molten panther
#

Did you copy the latest version from the 8.x bundle of the adafruit_circuitplayground directory to the lib folder of CIRCUITPY?

normal minnow
#

Yes, exactly. FWIW, I get the same behavior with my boards (I tried 2 so far) in the MU editor install on my Windows machine.

molten panther
#

Did you also update adafruit_lis3dh.mpy in lib?

#

All of these:
adafruit_bus_device/
adafruit_circuitplayground/
adafruit_lis3dh.mpy
adafruit_thermistor.mpy
neopixel.mpy

normal minnow
#

No. I haven't loaded the full bundle (adafruit-circuitpython-bundle-8.x-mpy-20230527) on the CPX. I seem to remember reading somewhere, that these simple programs should run on the CPX with just the in_built modules of the the CircuitPython runtime. Am I wrong about that?

molten panther
#

Well, the adafruit_circuitplayground library depends on all of the libraries above. It should have shipped with all of them. But if you upgraded to 8.x, then you would need to update these as well.

normal minnow
#

Ok, but the first line of Installation says: For Circuit Playground Express, simply install CircuitPython to use this library - the library itself and all of its dependencies are built into CircuitPython for Circuit Playground Express.

hushed narwhal
#

in the REPL, can you do >>> help("modules")

#

all built-in libraries should show up there

#

the "recursion depth" exception on import is probably a bug needing an issue... temporary workaround (might not work) try: supervisor.runtime.next_stack_limit to see what it is currently, then supervisor.runtime.next_stack_limit = something_larger then reboot

normal minnow
#

@hushed narwhal Thanks for the follow up. Here's what I see:

#

help("modules")
future adafruit_hid/keycode collections pwmio
main adafruit_hid/mouse countio rainbowio
adafruit_bus_device adafruit_lis3dh digitalio random
adafruit_bus_device.i2c_device adafruit_pixelbuf errno rotaryio
adafruit_bus_device.spi_device adafruit_thermistor gc rtc
adafruit_circuitplayground/init analogio math storage
adafruit_circuitplayground/circuit_playground_base array microcontroller struct
adafruit_circuitplayground/express audiobusio micropython supervisor
adafruit_hid/init audiocore neopixel sys
adafruit_hid/consumer_control audioio neopixel_write time
adafruit_hid/consumer_control_code bitbangio nvm touchio
adafruit_hid/keyboard board onewireio usb_cdc
adafruit_hid/keyboard_layout_base builtins os usb_hid
adafruit_hid/keyboard_layout_us busio pulseio usb_midi
Plus any modules on the filesystem

hushed narwhal
#

looks like the libraries are there. I'm not sure of precedence with built-in libraries, but something on CIRCUITPY might override those if they have the same name

#

are any of those libraries on CIRCUITPY at either "/" or "/lib"?

#

(the ones with the adafruit_ prefix, particularly)?

molten panther
hushed narwhal
#

these libraries are frozen into the flash, and should be consistent with the circuitpython version of the flash

molten panther
#

Ah. I forgot the libraries were built into CircuitPlayground.

#

They are not on other boards.

#

So, it would probably be best to remove any libraries in /lib or /.

normal minnow
#

Interestingly, I have no problems with running MakeCode programs 🤷‍♂️

molten panther
#

MakeCode is not based in CircuitPython.

normal minnow
molten panther
#

Agreed