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

CircuitPython 1.0.0 Release Candidate 1
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CircuitPython 1.0.0 Release Candidate 1

by tannewt on Sun Jun 18, 2017 8:42 pm

From the GitHub release page:


We're close to our first stable release! If we don't find any bugs with this we'll launch it as 1.0.0! This release itself has a number of small improvements and bug fixes. Further release candidates will be made from the stable branch.

This release is based on MicroPython 1.8.7.

Change highlights since 0.10.1:
  • shared-bindings: Move the DigitalIO related enum-like classes from inside DigitalInOut into digitalio directly. This requires a code change! For example, digitalio.DigitalInOut.Pull.UP becomes digitalio.Pull.UP.
  • shared-bindings: Rename directions from IN and OUT to INPUT and OUTPUT to match Arduino.
  • shared-bindings: Allow changing DigitalInOut direction through the property in addition to the switch_to_* methods. For example:
Code: Select all | TOGGLE FULL SIZE
import digitalio
import board
led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT

  • atmel-samd express: Enable ure, center, partition, frozenset, splitlines, and reversed. Thanks @dhalbert!
  • atmel-samd: Fix stack checking because it was broken with LTO. Thanks @dhalbert!
  • atmel-samd: A number of PWMOut fixes. Thanks @ladyada for the testing!
  • atmel-samd: Fix bug in REPL history handling.
  • atmel-samd: Change PID for CircuitPlayground Express and Metro M0 Express.
  • CircuitPlayground Express: Allow the user to initiate safe mode by holding both A and B buttons while power cycling the chip.

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

Have a Feather M0 Express or Metro M0 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.


tannewt
 
Posts: 1845
Joined: Thu Oct 06, 2016 8:48 pm

Re: CircuitPython 1.0.0 Release Candidate 1

by jerryn on Mon Jun 19, 2017 5:59 am

Thank you for the new release and all the work that went into it. So far I have been able to download build and execute it on a CircuitPlayground Express and M0 Express.
After making the required changes for digitialio everything seems to be working fine.

jerryn
 
Posts: 1328
Joined: Sat Sep 14, 2013 9:05 am

Re: CircuitPython 1.0.0 Release Candidate 1

by tannewt on Mon Jun 19, 2017 11:31 am

Awesome!

I realized this morning that I haven't updated the drivers. I'll do that today and release a new bundle with them. So, stay tuned for a new bundle.

tannewt
 
Posts: 1845
Joined: Thu Oct 06, 2016 8:48 pm

Re: CircuitPython 1.0.0 Release Candidate 1

by tannewt on Mon Jun 19, 2017 12:05 pm

Turns out none of the libraries use the DigitalInOut enum-like classes so we're ok. Only thing I found was an update to the design guide.

tannewt
 
Posts: 1845
Joined: Thu Oct 06, 2016 8:48 pm

Re: CircuitPython 1.0.0 Release Candidate 1

by jerryn on Mon Jun 19, 2017 12:15 pm

The only place I ran into a problem was in the the "fidget spinner" but the changes were simple as described in your notes.

jerryn
 
Posts: 1328
Joined: Sat Sep 14, 2013 9:05 am

Re: CircuitPython 1.0.0 Release Candidate 1

by tannewt on Mon Jun 19, 2017 12:18 pm

Could you point me to that code? I tried to search the learn guides but didn't find anything. Thanks for the testing jerryn!

tannewt
 
Posts: 1845
Joined: Thu Oct 06, 2016 8:48 pm

Re: CircuitPython 1.0.0 Release Candidate 1

by jerryn on Mon Jun 19, 2017 12:28 pm

It was just in the spinner_advanced.py when the buttons were assigned:
Lines 171 and 173
https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/blob/master/examples/spinner_advanced.py

This was in the guide:
https://learn.adafruit.com/digital-fidg ... n?view=all

jerryn
 
Posts: 1328
Joined: Sat Sep 14, 2013 9:05 am

Re: CircuitPython 1.0.0 Release Candidate 1

by tannewt on Mon Jun 19, 2017 2:47 pm

Perfect! Thanks! I submitted a pull to get it fixed: https://github.com/adafruit/Adafruit_Ci ... 3DH/pull/1

tannewt
 
Posts: 1845
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.