ICYMI Python on Microcontrollers Newsletter: New MicroPython and CircuitPython versions and more! #Python #ICYMI #CircuitPython @micropython @ThePSF

If you missed Tuesday’s Python on Microcontrollers Newsletter, here is the ICYMI (in case you missed it) version.

To never miss another issue, subscribe now! – You’ll get one terrific newsletter each Tuesday (before this post). 9,000 subscribers worldwide!

The next newsletter goes out in a week and being subscribed the best way to keep up with all things Python for hardware. No spam, no selling lists, leave any time.


Welcome to the latest Python on Microcontrollers newsletter, brought you by the community! We’re on Discord, Twitter, and for past newsletters – view them all here. If you’re reading this on the web, subscribe here. Let’s get started!

CircuitPython 7.0.0 Release Candidate 1

CircuitPython 7.0.0 Release Candidate 1

CircuitPython 7.0.0-rc1, is now available. Release candidate builds mark the final testing of CircuitPython 7 for stable release. It contains only a few issues still to be addressed for 7.0.0. The Python API’s it presents are not expected to change compatibility before the final 7.0.0 release, though they may be augmented.

Notable additions to 7.0.0 since 6.3.0 include:

  • Support for the CircuitPython development workflow over BLE.
  • Camera support on ESP32-S2.
  • qrio: QR code decoding.
  • The keypad key-scanning module.
  • Run-time customization of USB devices.
  • Merging in of MicroPython fixes and enhancements as of MicroPython 1.16.
  • _pixelbuf is now adafruit_pixelbuf.
  • colorwheel() routine moved to rainbowio.
  • supervisor.ticks_ms() to allow easier time-keeping.
  • Simplifications to the RGB status LED codes.
  • A clocking fix for a few samples of RP2040 boards.
  • Rework of vectorio and some of its API. VectorShape is no longer needed for user code.
  • atexit module.
  • getpass module.
  • traceback module.
  • supervisor.get_previous_traceback().
  • board.LED now consistently present on all boards that have such an LED.
  • PulseOut no longer needs a PWMOut.
  • Unicode filename support.
  • Board ID is now in boot_out.txt and available as board.board_id.
  • aesio on for full builds by default.

More – GitHub.

MicroPython 1.17 Released

MicroPython 1.17 Released

The 1.17 release of MicroPython adds support for f-strings (PEP-498), with a few limitations compared to normal Python. F-strings are essentially syntactic sugar for ““.format() and make formatting strings a lot more convenient. Other improvements to the core runtime include pretty printing OSError when it has two arguments (an errno code and a string), scheduling of KeyboardInterrupt on the main thread, and support for a single argument to the optimized form of StopIteration.

In the machine module a new I2S class has been added, with support for esp32 and stm32 ports. This provides a consistent API for transmit and receive of audio data in blocking, non-blocking and asyncio-based operation. Also, the json module has support for the “separators” argument in the dump and dumps functions, and framebuf now includes a way to blit between frame buffers of different formats using a palette. A new, portable machine.bitstream function is also added which can output a stream of bits with configurable timing, and is used as the basis for driving WS2812 LEDs in a common way across ports.

There has been some restructuring of the repository directory layout, with all third-party code now in the lib/ directory. And a new top-level directory shared/ has been added with first-party code that was previously in lib/ moved there.

The docs have seen further improvement with enhancements and additions to the rp2 parts, as well as a new quick reference for the zephyr port. The terms master/slave have been replaced with controller/peripheral, mainly relating to I2C and SPI usage. And u-module references have been replaced with just the module name without the u-prefix to help clear up the intended usage of modules in MicroPython.

Read More – GitHub.

Play MP3s on Raspberry Pi Pico with CircuitPython 7

Play MP3s on Pico via CircuitPython

Adafruit’s Kattni Rembor shows how easy it is to play MP3s on a Raspberry Pi Pico via CircuitPython – hackster.io and Adafruit Learning System.

Halloween Hackfest

Halloween Hackfest

Join Hackaday, Digi-Key, and Adafruit for a Halloween-themed contest! They want to see your crazy, creepy, ghostly, spooky, and awesome projects.

If costumes are your favorite part of Halloween, then why not dress up your outfit with some hacked upgrades? You could even design a ghoulish prop to add to your home’s Halloween décor or light up a Jack-o-lantern with LEDs. Whether it’s technical, artistic, or just plain terrifying, Hackaday wants to see your projects!

Check out the Halloween Show & Tell with Hackaday, Friday, October 29th at 1pm PT, to show off your awesome projects entered in the contest. Don’t forget to also share your projects on social media and use the #HalloweenHackfest!

Hackaday and Digi-Key have partnered on this Halloween-themed contest to offer three winners an online shopping spree to the Digi-Key warehouse! – Hackaday and hackaday.io.

Python Software Foundation News

PSF

Volunteer Opportunities for PyCon US – Python Software Foundation.

Python 3.9.7 and 3.8.12 are now available – Python Insider.

Python 3.7.12 and 3.6.15 security updates now available – Python Insider.

CircuitPython Deep Dive Stream with Scott Shawcroft

Deep Dive with Scott

This week, Scott streams his work on CircuitPython 7.0.0 & GitHub Actions.

You can see the latest video and past videos on the Adafruit YouTube channel under the Deep Dive playlist – YouTube.

CircuitPython Parsec

CircuitPython Parsec

John Park’s CircuitPython Parsec:

News from around the web!

MicroPad MP3 DJ

CircuitPython and Adafruit MACROPAD RP2040 DJ Controller – Twitter.

SpaceX ISS Docking Simulator

Use Adafruit MacroPad for the SpaceX ISS Docking Simulator – Adafruit Blog, Reddit, and GitHub.

Getting started with the ATMegaZero ESP32-S2

Video: Getting started with the ATMegaZero ESP32-S2 and CircuitPython – YouTube.

Blackboard

Blackboard is a board with 24 capacitive touch pads, 9 LEDs, customizable, using CircuitPython and Raspberry Pi Pico – Tindie.

Devices Aid Speech for People with Disabilities

Devices Aid Speech for People with Disabilities: two devices that enable people with cerebral palsy to more easily access communication software to create speech. The units are based on the micro:bit and MicroPython – Circuit Cellar.

Software Bundle

The Python Superpowers Software Bundle:

There’s no better time than now to master a new skill and make your computer even more useful! Pick up the awesome programming potential of Python, with software like Mastering PyCharm (2021 Edition), Object-Oriented Programming (OOP) in Python, and PyCharm Professional Edition – 6 months free. Plus, your purchase will support the Python Software Foundation and Women Who Code! – Humble Bundle.

Python Apps on Windows

Distributing Python apps for Windows (and dealing with the pain) – Necromancer’s Notes.

TI-84 CE Python Edition

TI-84 CE Python Edition Review: Wait… when did calculators get sexy? (This calculator incorporates CircuitPython) – Input Magazine.

Hackaday.io Python Projects

Hackaday.io has dozens of Python on Microcontroller projects:

Raspberry Pi Pico and RP2040 - MicroPython Part 2: I2C Sensor and Module

Raspberry Pi Pico and RP2040 – MicroPython Part 2: I2C Sensor and Module – maker.io.

Pico Escape Room

A Raspberry Pi Pico Escape Room game in MicroPython – GitHub.

Visual MicroPython platform BIPES

Visual MicroPython platform BIPES gets some major upgrades, including a dashboard and Web Bluetooth – hackster.io and Twitter.

How to use the 74hc595 chip with a Raspberry Pi Pico and MicroPython,

How to use the 74hc595 chip with a Raspberry Pi Pico and MicroPython – peppe80.

Connect and use a DHT11 sensor to Raspberry Pi Pico with MicroPython – peppe80.

ESP32 and Display with MicroPython

ESP32 and ST7735S 1.4” TFT display with MicroPython – Twitter.

apollo-entry-guidance

An Apollo entry guidance implementation in Python – GitHub and Twitter.

Mycodo

Mycodo: an environmental monitoring and regulation system with Raspberry Pi and Python – GitHub and YouTube.

High-level geospatial data visualization library for Python

geoplot: a high-level geospatial data visualization library for Python – Python Awesome and GitHub.

Apple exploring RISC-V

Apple exploring RISC-V, advertising for RISC-V ‘High Performance’ Programmers – Tom’s Hardware and Adafruit Blog.

SQL query builder in Python

Write an SQL query builder in 150 lines of Python – death and gravity.

Jazzkeys

Jazzkeys – music while you are typing – Adafruit Blog.

Python behind the scenes: how async/await works in Python – Ten Thousand Meters.

A curated collection of Awesome Python Scripts that will make you go wow – Python Awesome.

The next Discord meeting will be Tuesday September 7th due to a US holiday. It’ll be linked to the next newsletter.

PyDev of the Week: Déborah Mesquita – Mouse vs. Python.

#ICYDNCI What was the most popular, most clicked link, in last week’s newsletter? Power of Python for Arduino Nano RP2040 Connect and Nano 33 BLE.

Coming soon

Desk of Ladyada

Desk of Ladyada: LED Glasses – YouTube.

LOLIN S2 Mini

The LOLIN S2 Mini is a CircuitPython compatible board based on an ESP32-S2 – CircuitPython.Org.

New Boards Supported by CircuitPython

The number of supported microcontrollers and Single Board Computers (SBC) grows every week. This section outlines which boards have been included in CircuitPython or added to CircuitPython.org.

This week, there were four new boards added!

Looking to add a new board to CircuitPython? It’s highly encouraged! Adafruit has four guides to help you do so:

New Learn Guides!

New Learn Guides

Scrambled Number Security Keypad from Anne Barela

MP3 Playback on RP2040 with CircuitPython from Kattni

3D Print Ratcatcher 2 Controller Device from Noe and Pedro

Adafruit SCD-40 and SCD-41 from Kattni

CircuitPython Project Bundle

BundleFly

When you get to the CircuitPython code section of an Adafruit Learn Guide, sometimes things can get a bit complicated. You not only have the code you need to upload to your device, but you likely also need to add some libraries that the code requires to run. This involved downloading all the libraries, digging through to find the ones you need, and copying them to your device. That was only the beginning on some projects, as those that include images and/or sound files required further downloading and copying of files. But, not anymore!

Now, with Project Bundles, you can download all the necessary code, libraries and, if needed, asset files with one click! We automatically check which libraries are required for the project and bundle them up for you. No more digging through a huge list of libraries to find the ones you need, or fiddling with looking for other files or dependencies. Download the Project Bundle, copy the contents to your device, and your code will simply work. We wanted to make this the easiest way to get a project working, regardless of whether you’re a beginner or an expert. We’ll also be adding this feature to popular IDEs as an add-on. Try it out with any Circuit Python guide on the Adafruit Learning System. Just look for the ‘Download Project Bundle’ button on the code page.

To download and use a Project Bundle:

In the Learning System – above any embedded code in a guide in the Adafruit Learn System, you’ll find a Download Project Bundle button.

Project Bundle download button

Click the button to download the Project Bundle zip.

Project Bundle zip downloaded

Open the Project Bundle zip to find the example code, all necessary libraries, and, if available, any images, sounds, etc.

Project Bundle unzipped

Simply copy all the files over to your CIRCUITPY drive, and you’re ready to go!

If you run into any problems or bugs, or would like to submit feedback, please file an issue on the Adafruit Learning System Guides GitHub repo.

CircuitPython Libraries!

CircuitPython Libraries

CircuitPython support for hardware continues to grow. We are adding support for new sensors and breakouts all the time, as well as improving on the drivers we already have. As we add more libraries and update current ones, you can keep up with all the changes right here!

For the latest libraries, download the Adafruit CircuitPython Library Bundle. For the latest community contributed libraries, download the CircuitPython Community Bundle.

If you’d like to contribute, CircuitPython libraries are a great place to start. Have an idea for a new driver? File an issue on CircuitPython! Have you written a library you’d like to make available? Submit it to the CircuitPython Community Bundle. Interested in helping with current libraries? Check out the CircuitPython.org Contributing page. We’ve included open pull requests and issues from the libraries, and details about repo-level issues that need to be addressed. We have a guide on contributing to CircuitPython with Git and Github if you need help getting started. You can also find us in the #circuitpython channel on the Adafruit Discord.

You can check out this list of all the Adafruit CircuitPython libraries and drivers available.

The current number of CircuitPython libraries is 333!

New Libraries!

Here’s this week’s new CircuitPython libraries:

Updated Libraries!

Here’s this week’s updated CircuitPython libraries:

What’s the team up to this week?

What is the team up to this week? Let’s check in!

Kattni

This week I published the SCD-4x guide and the MP3 Playback on RP2040 using CircuitPython guide. The first covers using the SCD-40 and SCD-41 CO2 sensors with CircuitPython, and the second one is pretty self-explanatory. I’m currently working on adding a third page to the MP3 guide – a new template for I2S audio. The example in the guide will use the Pico. I2S allows for use of a higher quality external DAC, which means the audio quality can be substantially better.

I also started the update of the INA219 guide for the STEMMA QT rev. The board revision has been out for a while, but the guide hasn’t been updated, so I’m working on that as well.

Melissa

This past week I worked on the new CircuitPython code editor some more. This mostly was focused on diving into the JavaScript code. You can check out the updated editor at https://code.circuitpython.org.

Scott

This week has been more bug hunting and just starting to release the first CircuitPython 7.0.0 release candidate.

  • Jeff and I debugged a very weird crash on ESP32-S2. I covered the issue on my Deep Dive.
  • Fixed failing light sleep on nRF when USB serial had pending characters.
  • Fixed two crashes when using the watchdog on nRF.
  • Fixed a crash on nRF when using external interrupts internally.
  • Fixed a race condition with USB startup on RP2040.
  • Updated ESP-IDF to a newer version of 4.3.
  • Shrunk build sizes by sorting objects when linking to reduce fill bytes.

For BLE workflow I also:

  • Made deletes work recursively. Added a reload delay after BLE writes so writing multiple files can be done without needing to reconnect every file.
  • Switched the BLE Serial UUIDs to ones custom for CircuitPython.

On top of that, I did many reviews and most of a release. We briefly had 0 open PRs. In the last week, we merged 40 PRs. Things are cruising. Thanks to everyone who contributes to CircuitPython.

Upcoming events!

PyConline AU

PyConline AU will be held 10-12 September, 2021 – pyconlineau

Kiwi PyCon XI

Kiwi PyCon XI, Ōtautahi Christchurch, 17th, 18th, & 19th of September 2021 and CFP ends July 16th – python.nz.

PyCon India 2021

PyCon India is the largest gathering of Pythonistas in India for the Python programming language. The 13th edition of PyCon India will be taking place online from 17th September to 20th September 2021 – PyCon India 2021.

PyGotham 2021

PyGotham is a New York City based, eclectic, Py-centric conference covering many topics. PyGotham TV 2021 is an online-only edition of PyGotham being held October 1-2, 2021. The call for proposals is here. Registration is here.

PyCon Sweden 2021

PyCon Sweden is back for the 2021 edition on 21-22 October! The conference is now welcoming proposals for talks, workshops, and lightning talks on anything Python-related! – PyCon Sweden.

Send Your Events In

As for other events, with the COVID pandemic, most in-person events are postponed or cancelled. If you know of virtual events or events that may occur in the future, please let us know on Discord or on Twitter with hashtag #CircuitPython.

Latest releases

CircuitPython’s stable release is 6.3.0 and its unstable release is 7.0.0.rc.1. New to CircuitPython? Start with our Welcome to CircuitPython Guide.

20210903 is the latest CircuitPython library bundle.

v1.17 is the latest MicroPython release. Documentation for it is here.

3.9.7 is the latest Python release. The latest pre-release version is 3.10.0rc1.

2,562 Stars Like CircuitPython? Star it on GitHub!

Call for help – Translating CircuitPython is now easier than ever!

CircuitPython translation statistics on weblate

One important feature of CircuitPython is translated control and error messages.

With the help of fellow open source project Weblate, we’re making it even easier to add or improve translations.

Sign in with an existing account such as GitHub, Google or Facebook and start contributing through a simple web interface. No forks or pull requests needed!

As always, if you run into trouble join us on Discord, we’re here to help.

jobs.adafruit.com – Find a dream job, find great candidates!

jobs.adafruit.com

jobs.adafruit.com has returned and folks are posting their skills (including CircuitPython) and companies are looking for talented makers to join their companies – from Digi-Key, to Hackaday, Micro Center, Raspberry Pi and more.

30,712 thanks!

30,712

Adafruit Discord

The Adafruit Discord community, where we do all our CircuitPython development in the open, reached over 30,712 humans, thank you! Adafruit believes Discord offers a unique way for CircuitPython folks to connect. Join today at https://adafru.it/discord.

ICYMI – In case you missed it

ICYMI

The wonderful world of Python on hardware! This is our Python video-newsletter-podcast! The news comes from the Python community, Discord, Adafruit communities and more and is reviewed on ASK an ENGINEER Wednesdays. The complete Python on Hardware weekly videocast playlist is here.

This video podcast is on iTunes, YouTube, IGTV (Instagram TV), and XML.

Weekly community chat on Adafruit Discord server CircuitPython channel – Audio / Podcast edition – Audio from the Discord chat space for CircuitPython, meetings are usually Mondays at 2pm ET, this is the audio version on iTunes, Pocket Casts, Spotify, and XML feed.

And lastly, we are working up a one-spot destination for all things podcast-able here – podcasts.adafruit.com

Codecademy “Learn Hardware Programming with CircuitPython”

Codecademy CircuitPython

Codecademy, an online interactive learning platform used by more than 45 million people, has teamed up with the leading manufacturer in STEAM electronics, Adafruit Industries, to create a coding course, “Learn Hardware Programming with CircuitPython”. The course is now available in the Codecademy catalog.

Python is a highly versatile, easy to learn programming language that a wide range of people, from visual effects artists in Hollywood to mission control at NASA, use to quickly solve problems. But you don’t need to be a rocket scientist to accomplish amazing things with it. This new course introduces programmers to Python by way of a microcontroller — CircuitPython — which is a Python-based programming language optimized for use on hardware.

CircuitPython’s hardware-ready design makes it easier than ever to program a variety of single-board computers, and this course gets you from no experience to working prototype faster than ever before. The Codecademy interactive learning environment, combined with Adafruit’s highly rated Circuit Playground Express, present aspiring hardware hackers with a never-before-seen opportunity to learn hardware programming seamlessly online.

Whether for those who are new to programming, or for those who want to expand their skill set to include physical computing, this course will have students getting familiar with Python and creating incredible projects along the way. By the end, students will have built their own bike lights, drum machine, and even a moisture detector that can tell when it’s time to water a plant.

Visit Codecademy to access the Learn Hardware Programming with CircuitPython course and Adafruit to purchase a Circuit Playground Express.

Codecademy has helped more than 45 million people around the world upgrade their careers with technology skills. The company’s online interactive learning platform is widely recognized for providing an accessible, flexible, and engaging experience for beginners and experienced programmers alike. Codecademy has raised a total of $43 million from investors including Union Square Ventures, Kleiner Perkins, Index Ventures, Thrive Capital, Naspers, Yuri Milner and Richard Branson, most recently raising its $30 million Series C in July 2016.

Contribute!

The CircuitPython Weekly Newsletter is a CircuitPython community-run newsletter emailed every Tuesday. The complete archives are here. It highlights the latest CircuitPython related news from around the web including Python and MicroPython developments. To contribute, edit next week’s draft on GitHub and submit a pull request with the changes. You may also tag your information on Twitter with #CircuitPython.

Join our Discord or post to the forum for any further questions.


Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Join 30,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


Maker Business — Supply delays have made their way inland with railway bottlenecks

Wearables — Light up the outside

Electronics — Current limiting!

Python for Microcontrollers — Python on Microcontrollers Newsletter: 9K Subscribers, Cheat Sheets and More! #Python #Adafruit #CircuitPython @micropython @ThePSF

Adafruit IoT Monthly — WFH Stress Monitor, Helping Parkinson's Patients with IoT, and more!

Microsoft MakeCode — MakeCode Thank You!

EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 9/15/21 feat. Adafruit LED Glasses Front Panel – 116 RGB LEDs w/ I2C Driver -STEMMA QT! @adafruit #adafruit #newproducts

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.