Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.

CircuitPython 1.0.0 Release Candidate 3
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CircuitPython 1.0.0 Release Candidate 3

by tannewt on Fri Jun 30, 2017 4:23 pm

From the GitHub release page:

One fix thanks to @ladyada and @dhalbert! This release was made from the stable branch. The master branch is now working towards the 2.0.0 release.

This release is based on MicroPython 1.8.7.

Change highlights since 1.0.0-rc.2:

  • atmel-samd: Fix keyboard HID supporting. Misalignment of the USB descriptor was leading to a USB Busy error. Thanks to @ladyada for finding it and @dhalbert for fixing it.
  • atmel-samd: Add IR_TX and IR_RX pin names to board for the CircuitPlayground Express.
  • atmel-samd: Update to ARM GCC 6.3 Q2 update.

To install, download a .bin file and follow the guide here for M0 and here for ESP8266.

Have a Feather M0 Express, Metro M0 Express, or Circuit Playground Express? Download a .uf2 and follow these instructions. To install our libraries simply download the latest bundle and copy the lib folder onto your CIRCUITPY drive.

Posts: 1837
Joined: Thu Oct 06, 2016 8:48 pm

Re: CircuitPython 1.0.0 Release Candidate 3

by LogicalEnigma on Sat Jul 01, 2017 4:51 pm

After a several month hiatus, I'm trying out the latest version of CircuitPython (1.0.0 RC 3) on an M0 Basic board. I'm trying to get a NeoPixel ring to light up but the board reports, "no module named neopixel". Sure enough, several of the on-line documents don't have that module listed but the Adafruit learning section contains a lot of examples that rely on it. However, I did find a neopixel_write module which is indeed very low-level.

As an experiment, I also tried to import several other modules listed on the core modules page. It found most of the ones I would expect but not, "random" which confused me because the support-matrix says it should work on my board. (Same error, "no module named 'random'".) Next I looked for any external neopixel python drivers that might be available but didn't find any.

My questions are these:
  • What is the state of the neopixel library for CircutPython?
  • What are the plans for this library? Will it eventually be implemented?
  • As far as the tutorials go, what is the difference between the MicroPython and CircuitPython implementations? I understand these run on different hardware but I'm getting confused on which tutorials should apply to which firmware and boards? Do any tutorials expressly say CircuitPython?
  • Should I consider different hardware than the M0 Basic if I want to use NeoPixels?

As a reference, here are some of the documents that I looked at:

Posts: 3
Joined: Sat Dec 27, 2014 11:34 pm

Re: CircuitPython 1.0.0 Release Candidate 3

by dhalbert on Sat Jul 01, 2017 11:18 pm

The Neopixel CircuitPython library is here: ... n_NeoPixel. Just copy the file onto your CIRCUITPY drive, and then you can import neopixel.

The video and written tutorials track a moving target from MicroPython to CircuitPython. There are aspects of the older ones that are out of date. The Adafruit implementation for the M0 boards started out as MicroPython and was renamed to CircuitPython. If the tutorial mentions CircuitPython up front, it will be more up to date. But there have been changes to the CircuitPython API in the past few months as well, so it is always good check the documentation, as you did. Search in for the latest versions of the CircuitPython libraries.

The "latest" documentation at readthedocs is now tracking the next release after 1.0.0. So use ... index.html ("stable" instead of "latest").

For random, do "import urandom". This is changing post-1.0.0.

There is a bundled version of all the current libraries ( ... hon_Bundle) but it will not fit in the tiny 64k file system on the M0 Basic. However, you can pick and choose among the libraries that you need.

I'm writing this on a clunky travel computer with issues, so sorry if I haven't answered all your questions.

Posts: 401
Joined: Tue Feb 17, 2015 6:18 pm

Please be positive and constructive with your questions and comments.