New MicroPython release: v1.11

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
mattyt
Posts: 251
Joined: Mon Jan 23, 2017 6:39 am

New MicroPython release: v1.11

Post by mattyt » Thu May 30, 2019 2:47 am

MicroPython v1.11 was released yesterday! Congrats to all involved. :)

Highlights include: Improvements to the mpy format (with support for native code) and a Javascript port. But there have been many, many incremental improvements across the board - over 350 commits since v1.10 on 26th Jan. Take a look at the changelog for details.

The prebuilt downloads page already provides v1.11 builds.

Of note: Support for PyBoard D was not included in v1.11 - it's the focus for v1.12.

[Edit] Also notable: Ticket #4821 that covers the Roadmap for next release (v1.11 -> v2.0?).

kevinkk525
Posts: 527
Joined: Sat Feb 03, 2018 7:02 pm

Re: New MicroPython release: v1.11

Post by kevinkk525 » Thu May 30, 2019 6:26 am

Congrats, great job! Looking forward to 2.0 :D

Also fixed is a rare esp8266 bug that could cause uasyncio to block everything for 1h 11 minutes. No more watchdog needed on my esp8266s.
Kevin Köck
Micropython Smarthome Firmware: https://github.com/kevinkk525/pysmartnode

OutoftheBOTS_
Posts: 679
Joined: Mon Nov 20, 2017 10:18 am

Re: New MicroPython release: v1.11

Post by OutoftheBOTS_ » Thu May 30, 2019 6:49 am

Wow that was a fast update from v1.10 :)

JoeCharlieH
Posts: 6
Joined: Thu Dec 27, 2018 10:59 pm

Re: New MicroPython release: v1.11

Post by JoeCharlieH » Fri May 31, 2019 6:01 pm

I'm really happy that they added the I2C.writevto(addr,vect) method and that it's already used in the ssd1306 driver :D :D :D :D

kowapuk
Posts: 3
Joined: Sun Nov 11, 2018 9:37 am

Re: New MicroPython release: v1.11

Post by kowapuk » Mon Jul 08, 2019 5:00 pm

boards: enable dual core support by default
How to use second core? What's tasks work on it?

User avatar
jimmo
Posts: 890
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia

Re: New MicroPython release: v1.11

Post by jimmo » Tue Jul 09, 2019 12:03 pm

kowapuk wrote:
Mon Jul 08, 2019 5:00 pm
How to use second core? What's tasks work on it?
Hopefully someone more knowledgeable about ESP32 can confirm, but I believe that this enables FreeRTOS threads (tasks) to use multiple cores, and that MicroPython threads are based on FreeRTOS threads.

You can use the _thread module (which is uhh undocumented... see https://docs.micropython.org/en/latest/ ... hread.html) but have a look at https://github.com/micropython/micropyt ... sts/thread for some example programs that use it.

User avatar
mattyt
Posts: 251
Joined: Mon Jan 23, 2017 6:39 am

Re: New MicroPython release: v1.11

Post by mattyt » Tue Jul 09, 2019 12:26 pm

jimmo wrote:
Tue Jul 09, 2019 12:03 pm
Hopefully someone more knowledgeable about ESP32 can confirm, but I believe that this enables FreeRTOS threads (tasks) to use multiple cores, and that MicroPython threads are based on FreeRTOS threads.

You can use the _thread module (which is uhh undocumented... see https://docs.micropython.org/en/latest/ ... hread.html) but have a look at https://github.com/micropython/micropyt ... sts/thread for some example programs that use it.
Yes, that's my understanding too. Damien demonstrated _thread at the November Melbourne MicroPython Meetup.

LisaM
Posts: 19
Joined: Tue Nov 07, 2017 6:11 pm

Re: New MicroPython release: v1.11

Post by LisaM » Sat Jul 20, 2019 5:27 pm

jimmo wrote:
Tue Jul 09, 2019 12:03 pm
kowapuk wrote:
Mon Jul 08, 2019 5:00 pm
How to use second core? What's tasks work on it?
Hopefully someone more knowledgeable about ESP32 can confirm, but I believe that this enables FreeRTOS threads (tasks) to use multiple cores, and that MicroPython threads are based on FreeRTOS threads.

You can use the _thread module (which is uhh undocumented... see https://docs.micropython.org/en/latest/ ... hread.html) but have a look at https://github.com/micropython/micropyt ... sts/thread for some example programs that use it.
And the performance improvement of dual versus single core is staggering! I'm amazed how much faster my app now is running (my app is quite big in size, currently at 1.6MB, and very complex including running against Azure IoT).

Post Reply