ICYMI Python on Microcontrollers Newsletter: CircuitPython 6.2.0 released and More! #Python #Adafruit #CircuitPython @micropython @ThePSF #ICYMI

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). Over 8,795 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 6.2.0 released!

CircuitPython 6.2.0 released

CircuitPython 6.2.0 stable has been released! This is a new stable release of CircuitPython. Thank you to all of our amazing contributors!

Fixes since 6.2.0 beta 4 include:

  • Add displayio.Palette.is_transparent(palette_index). #4426. Thanks @kmatch98.
  • Add uniform board.LED pin names for several boards. More later. #4421. Thanks @kattni.
  • Add bitmaptools.readinto() and bitmaptools.arrayblit(). #4403. Thanks @jepler.
  • Disable usb_cdc, the second USB serial port, by default. it was on by default in 6.2.0-beta.3. It is still available to use in a custom build. #4384. Thanks @dhalbert.
  • Save ~1500 bytes of firmware space via slight changes in vm execution with a minor speed penalty. #4344. Thanks @jepler.
  • Refactor displayio set_pixel for use in bitmap_tools. #4357. Thanks @kmatch98.
  • Update TinyUSB. #4327. Thanks @hathach.
  • Fix regression of TinyUSB version. #4365. Thanks @tannewt.
  • Fix incorrect 16-bit signedness in displayio.TileGrid. #4287. Thanks @deshipu.

Board and port specific changes include:

  • ESP32-S2:
    • Fix wifi and I2C interfering with each other. #4387. Thanks @dhalbert.
  • RP2040:
    • Add displayio.ParallelBus. #4130. Thanks @gamblor21.
    • Add rotaryio. #4329. Thanks @jepler.
    • Enable audiomp3; it works at low bit rates. #4380. Thanks @jepler.
  • STM32
    • Add all modules enabled in STM32F405 to STM32F407. #4385. Thanks @hierophect.
    • Fix UART.deinit(). #4383. Thanks @hierophect.

And so much more!

For all the details details, check out the release post on the Adafruit Blog. You can download the latest version of CircuitPython from CircuitPython.org.

Open Hardware Summit streams this week!

2021 Open Hardware Summit

The 2021 Open Hardware summit will be held online, Friday April 9, 2021. The summit will be livestreamed, but ticket holders will have access to additional interactive portions of the summit like meet-and-greets, workshops, and sponsor booths. Speakers include world renowned leaders from industry, academia, the arts and maker community. Talks cover a wide range of subjects from electronics, mechanics to related fields such as digital fabrication, fashion technology, self-quantification devices, and IP law. Find details, including ticket and sponsorship information at 2021.oshwa.orgOSHWA.

CircuitPython Deep Dive Stream with Scott Shawcroft

Deep Dive with Scott

This week, Scott streams his work on Bluetooth Low Energy (BLE).

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

News from around the web!

CircuitPython Keyboard and Macro Pads

A plethora of CircuitPython keyboards and macro pads – Reddit.

Gameduino CircuitPython

Using the Dazzler and Gameduino CircuitPython to create a sprite animation – Tiny Letter.

GPIO on a PC

How to use CircuitPython with GPIO pins on a PC – Tom’s Hardware.

Pico macro pad

Raspberry Pi Pico macro pad – jmdawson.co.uk.

Circuit Playground Orb

Circuit Playground ambient weather temperature reactive orb – Adafruit Forum.

Getting started with Pico

Raspberry Pi Pico microcontroller introduction, including a comparison with the Raspberry Pi Zero, installing MicroPython, and a demonstration controlling LEDs – YouTube.

TurtlePlotBot

TurtlePlotBot is a MicroPython-powered 3D printed drawing robot – Hackaday.

CO2 sensor board

A Pico-based CO2 sensor carrier board with display – Tindie.

Pico Keybow

Revamping a Pi Keybow into a Pico Keybow using RedRobotics’ Pico2Pi running CircuitPython – Codepope.dev via Twitter.

Emulating SSEM

Emulating the Small-Scale Experimental Machine (SSEM) currently housed at the Manchester Science and Industry Museum using CircuitPython – Twitter.

Learning Python

Learning Python as a method to change a bios password – Hackaday.

LumiCube

LumiCube comes with 192 LEDs, loads of sensors, and can be programmed using Python – Hackster.

Pico beginner projects

Pico projects for beginners, in MicroPython – Hackster.

Pico and Sublime Text

Using Sublime Text 3 to code with your Raspberry Pi Pico – Recantha.

MeowBit Audio

Using CircuitPython to produce audio on a MeowBit (Russian) – PVSM.

Melbourne MicroPython Meetup

Slides from the March 2021 Melbourne MicroPython Meetup – Google Docs.

Awesome CircuitPython

Awesome CircuitPython list updated with new book in French: An introduction to CircuitPython and the nRF54840 – CircuitPython.org.

Hello HPy

HPy provides a new API for extending Python in C – HPy Project.

CuFlow

Crossbars in CuFlow: using Python to draw PCB layouts – excamera.

Pico tutorial

Raspberry Pi Pico tutorial using MicroPython – Hackster.

Graphics routines for Pico

Graphics routines for Raspberry Pi Pico screens – Raspberry Pi.

Intro to Pico

Introduction to RP2040 and Raspberry Pi Pico – smist09 WordPress.

Smart chess board

A Python-powered smart chess board that allows for local or online play – Hackster.

Pi car dashboard

Raspberry Pi car dashboard pulls and plots ODB-II data using Python – Hackster.

Python wildlife photo

Using Python as an AI-free way to catch wildlife on camera – Hackaday.

Cellular heatmap

Create a Google Map heatmap with cellular and GPS data acquired by a Raspberry Pi Pico and Notecard, using Python and Google Cloud Platform – Hackster.

First Look at the Adafruit Feather RP2040

This video gives you a first look at the Feather RP2040 board from Adafruit. This board is a great alternative to the Raspberry Pi Pico for projects where you need some extra features! – Youtube.

Piunora

Piunora: a tiny-but-mighty open-source carrier board for the Raspberry Pi CM4 – Crowd Supply via Twitter.

CircuitPython-powered shoes

LED-lit CircuitPython-powered sneakers – Twitter.

Cosplay with CircuitPython

Detroit Become Human cosplay with flexible PCBs and CircuitPython – Altium.

Pi and Python

Art, games and more using Raspberry Pi and Python – Hackster.

Videoconference controller

CircuitPython-powered Pico-based videoconference controller – RNascimento via Twitter.

CircuitPython Zelda sword

Zelda Breath of the Wild Guardian Sword prop running CircuitPython – Twitter.

CircuitPython on ESP-12K

CircuitPython running on an ESP-12K development board – Twitter.

Bluetooth macro pad

Proof-of-concept Bluetooth macro pad running CircuitPython – Twitter.

CircuitPython volume control

Controlling volume with a rotary encoder using CircuitPython – Twitter.

PicoPong

A game of PicoPong using MicroPython running on Raspberry Pi Pico – YouTube via Twitter.

Pico space game

A graphical space game in MicroPython using Pico Explorer and Raspberry Pi Pico – Penguin Tutor via Twitter.

Getting started with Pico

Getting started with Raspberry Pi Pico and MicroPython – How 2 Electronics via Twitter.

Getting Started with MicroPython

Getting started with MicroPython – Real Python via Twitter.

Obsidian ESP32

The Obsidian ESP32 works great with MicroPython and allows for using Raspberry Pi HATs – Crowd Supply.

Node-Red and MicroPython

Node-Red automation, MQTT, NodeMCU and MicroPython – PSCP.tv via Twitter.

MicroPython GPS

GPS receiver using MicroPython and Raspberry Pi Pico – Twitter.

Soldered Pico

First time soldering and programming the Raspberry Pi Pico in MicroPython – Twitter.

RGB ring illuminator demo

MicroPython-powered RGB LED ring illuminator for a microscope – GitHub via Twitter.

CO2 sensor

Building a C02 sensor using CircuitPython, and plotting the results – Twitter.

OrderedDict

OrderedDict vs dict in Python: the right tool for the job – Real Python.

List comprehensions

Understanding list comprehensions in Python – Real Python.

title

Records and sets: selecting the ideal data structure in Python – Real Python.

MotionPy

The open source Trinamic MotionPy single board computer runs MicroPython – element14 via Twitter.

Pico 2 Pi

Showing off the Pico 2 Pi adapter by RedRobotics – Twitter.

Switch-case

What is the switch-case equivalent in Python? – Päkstech.

Lunatic Python

Lunatic Python is a two-way bridge between Lua and Python – Labix.

PicoPicorder

Making progress on a PicoPicorder using Raspberry Pi Pico running CircuitPython – YouTube and GitHub via Twitter.

Moon phase tracker

MagTag moon phase tracker – GitHub.

HSM4

The HSM4 is a hardware security module with embedded Linux in mind — and a Raspberry Pi and NVIDIA Jetson development kit – Hackster.

Pico boots to MicroPython

Raspberry Pi Pico Orange-Python machine boots straight to MicroPython – Tom’s Hardware.

Machine learning with RP2040

Machine learning with RP2040 – YouTube.

Arduino Core for RP2040

Trying out Arduino Core for Pico on the Feather RP2040 – YouTube.

QT Py RP2040

Adafruit demos the QT Py RP2040 – Tom’s Hardware.

Python performance

A 5-point framework for Python performance management – Medium.

Python concurrency

Making lunch faster with Python concurrency: a lunchtime story to demonstrate threading, asyncio, multiprocessing & cloud functions – sourcery.ai.

Fair Use

Google’s copying of the Java SE API was fair use – Adafruit Blog.

PyDev of the Week: Ngazetungue Muheue on Mouse vs Python

CircuitPython Weekly Meeting for April 5, 2021 (notes) on YouTube

#ICYDNCI What was the most popular, most clicked link, in last week’s newsletter? ScoutMakes Bluetooth FM Radio Kit.

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.

There were no new boards added this week, but we have a number in the works!

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

Quickstart – Raspberry Pi RP2040 with BLE and CircuitPython from Brent Rubell

Adafruit MIDI FeatherWing from Kattni

Updated Learn Guides!

CircuitPython LED Animations from Kattni

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 309!

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!

Dan

I released the first release candidate for CircuitPython 6.2.0 early in the morning of April 1. Perhaps by the time you read this, 6.2.0 stable will be out.

Previously, some I2C devices were not working on the RP2040. There were multiple causes for this, and finally a joint effort of several of us inside and outside of Adafruit solved the problem completely. The pico-sdk code was not respecting a certain time interval defined in the I2C specification. Most devices tolerated a shorter interval, but a few did not. This has been fixed in CircuitPython and is being fixed in the upstream pico-sdk repo as well.

For CircuitPython 7.0.0, I’ll be working on dynamic USB descriptors, so that you don’t have to build a custom version of CircuitPython to add or remove a USB or USB HID device. I hope to be able this support both general-purpose and still make it small enough to fit onto our smallest boards, which are often used to build HID-based gadgets.

Jeff

My work continues to be on the RT1011 board. We’ve ironed out the problems we’re aware of with SPI, and even enabled the micro SD card on the Teensy 4.1 to work (albeit with the slow bitbangio version of SPI). Currently, I’m working on PWM, which has only been incompletely implemented so far.

Kattni

First solo newsletter was deployed successfully! I hope you enjoyed it.

This week, I have been primarily working on templating the CircuitPython Essentials guide. As previously explained, the goal is to recreate the guide as templates that can be tailored to each board, and then include them in every Adafruit CircuitPython-compatible board guide. This will make the experience for folks who are new to CircuitPython much smoother, as, instead of a general page explaining a concept, each page included in the guide will be specific to the board.

Other than that, I went through my todo list and finished up a number of things that had been forgotten along the way. At the moment, I’m caught up on that front.

Lucian

This past week, I’ve been working on the last bugs of the STM32 and NRF low power implementations, tracking down why specific hard crashes occur when retrieving alarms after sleep. I’ve also been transitioning into the RP2040, setting up the basics for the deep sleep implementation on that platform. And having now worked through low power once, there are some elements of the program flow I’d hoping to change across all ports, things like comment cleanup and renaming to help with future maintainability.

Melissa

This week I got the Dynamic Bundler completely working. I got past the CORS issue I was having by automatically uploading all of the release assets to Amazon S3 and adding a CORS header. You can take a look at the Dynamic Bundler by visiting the GitHub repo. There you’ll find usage instructions and the URL to access it.

The other major project that I worked on this week was setting up my Development Environment and learning TypeScript enough to fix an issue with the Visual Studio Code extension for CircuitPython. A library that was added a month ago broke the extension because it was structured a bit different than the extension was expecting and I updated the code to deal with the new structure better. you can check out the extension in the Visual Studio Marketplace.

Scott

This week I’ve switched the RP2040 and the generic external flash controller in CircuitPython to using nvm.toml. As a result, the flash chip-specific configuration is now shared. The last remaining thing is to switch the iMX RT (think Teensy 4.x) to the flash configuration. It’s lower on my list so it’ll come at a later date.

My higher priority now is getting the individual BLE workflow components sketched out. Getting the initial workflow components going will allow us to start exploring and experimenting the phone app side. We’ll have initial CircuitPython implementations up soon that folks can experiment with and will make it easy to evolve the protocols.

Upcoming events!

GeoPython 2021

The online GeoPython conference is focused on Python and Geo, its toolkits and applications. April 22-23, 2021 – https://2021.geopython.net/.

PyCon US 2021

PyCon US, the annual official annual Python gathering, has been announced to be held online May 12-15, 2021. Sprints will be held May 16-18, 2021. More information and signups at https://us.pycon.org/2021/

EuroPython 2021

EuroPython, the largest conference for the Python programming language in Europe, has been announced to be held online July 26 – August 1, 2021. More information at https://ep2021.europython.eu/

PyOhio

Call for proposals for PyOhio 2021 runs from March 15 – April 19, 2021 with the free event on July 31, 2021- PyOhio.org via Twitter.

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.2.0. At this time there is no unstable release. New to CircuitPython? Start with our Welcome to CircuitPython Guide.

20210405 is the latest CircuitPython library bundle.

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

3.9.4 is the latest Python release. The latest pre-release version is 3.10.0a6.

2,377 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, Microcenter, Raspberry Pi and more.

28439 thanks!

28439 THANKS

Adafruit Discord

The Adafruit Discord community, where we do all our CircuitPython development in the open, reached over 28439 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. Codecademy’s 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.


8-6-2021 (August 6, 2021) is the Snakiest day of the year and it’s also this year’s CircuitPython Day! The day highlights all things CircuitPython and Python on Hardware. See you there!

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 — Over 500,000 manufacturing jobs are going unfilled

Wearables — Stop the sweat

Electronics — Hummm… 60Hz noise in your amplifier driving you nuts?

Python for Microcontrollers — Python on Microcontrollers Newsletter: EuroPython 2021, CircuitPython 7.0.0 alpha 5 and more! #Python #Adafruit #CircuitPython @micropython @ThePSF

Adafruit IoT Monthly — Smart Agriculture, an E-Ink Newspaper, and more!

Microsoft MakeCode — MakeCode for the micro:bit - 2021 Release!

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 – Silicone Keycap Molds – MX Compatible Switches

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.