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

CircuitPython 2.0.0!
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CircuitPython 2.0.0!

by tannewt on Tue Sep 12, 2017 4:08 pm

From the GitHub release page:

2.0.0 is here! 2.0.0 updates CircuitPython to a MicroPython 1.9.2 foundation that we built awesome data storage related functionality on. Now you can write files to the file system and, on some boards, write raw bytes to a non-volatile section of memory.

Thank you to all CircuitPython and MicroPython contributors. Second, thank you to all who tested and found issues with 2.0.0 betas: @ladyada, @ntoll, @deshipu, @willingc, @jerryneedell, @KurticusMaximus, @kattni, @cledic, @diogoviannaaraujo, @cpunches, @eighthree, @joeynelson, @mrmcwethy, @fabitencourt, @hukuzatuna. From discord: scruffynerf, Sigafoos. Please keep up the awesome testing! Join us on the Discord chat to collaborate.

Here are the changes since 1.0.0:

Moving from 1.0.0 to 2.0.0 is not a perfect process. There are a few things that break when doing so.
  • mpy files compatible with 1.0.0 are NOT compatible with 2.0.0 because MicroPython changed the format. A 2.0.0 bundle is available here. (Its built by changing the branch of circuitpython in the bundle repo before building it.)
  • uos is replaced by os, storage and multiterminal
  • urandom is replaced by random

This release is based on MicroPython 1.9.2. Support upstream MicroPython by purchasing a PyBoard (from Adafruit here).

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

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

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

Re: CircuitPython 2.0.0!

by zencuke2 on Fri Sep 15, 2017 8:06 pm

Cool. Didn't notice this one. Now i know what toys I'll play with this weekend.


Posts: 236
Joined: Sun Feb 15, 2015 2:40 pm

Re: CircuitPython 2.0.0!

by meichr on Sat Sep 16, 2017 2:38 pm

Cool to have about 4K more of heap memory. Thanks!

I've two questions:

  • Will there be support for inline assembler for M0 like in MicroPython with STM32?
  • The M0 cpu contains an RTC and timers. MicroPython has support for those via the machine module. Is there any support for them in CircuitPython?

Thanks for any info.

PS: I can't get the ordered list format [list=] to work here, only the unordered one, despite the 123 button above the editor window.

Posts: 10
Joined: Wed Aug 02, 2017 3:11 pm

Re: CircuitPython 2.0.0!

by tannewt on Mon Sep 18, 2017 9:42 pm

Hi meichr,
I'm glad you are excited for more RAM! You can thank dhalbert for that.

I have no plans to make sure inline assembly works because it is not a beginner (or even intermediate) task.

The RTC is not supported though it would be nice. We do have support for external RTCs already.

The timers are supported through modules with particular functions such as pulseio. Our hardware API model differs from machine because its designed around functionality rather than specific peripherals.

Hope that answers your questions.

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

Please be positive and constructive with your questions and comments.