ICYMI Python on Microcontrollers Newsletter: CircuitPython 7.0.0 Alpha 6, CircuitPython Asteroids and more! #Python #CircuitPython #ICYMI @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). Over 8,956 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 Alpha 6 Released

CircuitPython 7.0.0 Alpha 6

CircuitPython 7.0.0-alpha.6, has been released. It is relatively stable, but contains a number of issues still to be addressed for 7.0.0. The Python API’s it presents may change.

Notable additions to 7.0.0 since 6.3.0 include:

  • Support for the CircuitPython development workflow over BLE.
  • Camera support on ESP32-S2.
  • 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.
  • getpass module.
  • traceback module.
  • board.LE now consistently present on all boards that have such an LED.
  • PulseOut no longer needs a PWMOut.
  • supervisor.get_previous_traceback()

Read more – Adafruit Blog and GitHub.

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 1 pm 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.

Tom’s Hardware Adafruit MacroPad RP2040 Review: The Ultimate DIY Keypad

Tom’s Hardware Adafruit MacroPad RP2040 Review

Tom’s Hardware just reviewed the Adafruit MacroPad USB keyboard. Their verdict: The best codable keypad on the market, Adafruit’s MacroPad RP2040 is stuffed with features you won’t find elsewhere – Tom’s Hardware and Adafruit Blog.

An Asteroid-like Game in CircuitPython for 6 Different Microcontroller Boards

CircuitPython Staroids

Tod Kurt (@todbot) has created an Asteroids-like game in CircuitPython. It currently runs on the Adafruit MacroPad, FunHouse, CLUE, PyGamer, Pybadge and the OSHW 2020 Badge. One code file for 4 different microcontrollers (nRF52840, ESP32-S2, RP2040, and SAMD51) and different displays!

More – GitHub and Twitter.

Codespace for GitHub Arrives

Codespace

GitHub’s Codespaces, cloud-based development environments that have been in preview since May 2020, are finally here. When you create a Codespace, a shallow clone of your repository is made on a Linux virtual machine that is both dedicated and private. Prices range from $0.18 to $2.88 per hour. GitHub released Codespaces yesterday for organizations using Team and Enterprise plans. Individuals can continue to use the Codespaces beta if they have succeeded in obtaining access. GitHub said: “We’ll share updates on what’s coming in the near future.”

GitHub has another neat feature called github.dev, which will remain free. When in a code repository, press the full stop character (period key) and an editor opens using a lightweight Codespace. What this means is that any file can be edited in the browser using a cut-down browser version of Visual Studio Code – which is very like the desktop version. There is no run or debug option in this lightweight environment, and clicking to debug prompts a dialog offering to continue either by cloning the repository locally or by starting a full Codespace – The Register.

Linux and MicroPython on a simulated RISC-V chip running on a graphics card fragment shader

Linux on a simulated RISC-V chip

Linux and MicroPython have been ported to run on a simulated RISC-V chip in a graphics card fragment shader. Demonstrated to a group in virtual reality – Adafruit Blog, Twitter Thread and YouTube.

CircuitPython Deep Dive Stream with Scott Shawcroft

Deep Dive with Scott

This week, Scott answers questions and fixes more bugs for CircuitPython 7.0.0.

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!

FFXIV

… demonstrating the use of the new RP2040-based Macropad from Adafruit as a hotkey controller for FFXIV! There are tons of ways to program this little thing, but of course my brain went right to using it for video games – Twitter.

Air Quality

A portable CO2 indoor air quality sensor and display with an Adafruit Pyportal, sensor and CircuitPython – Twitter and GitHub.

Tutorial: How to Install Visual Code Studio for working with CircuitPython

A video tutorial: How to Install Visual Code Studio for working with CircuitPython – YouTube.

Tree of Life

A Tree of Life with NeoPixels, an Adafruit QT Py and CircuitPython – Molecularist and Hackaday.

Electronics - George Gunn project

A detailed undergraduate course on microcontrollers and electronics from the Dyson School of Design Engineering using the Heltec WiFi kit 32 board and MicroPython – Imperial College.

M4 Breadstick

Is the ItsyBitsy too cramped for your style? The new M4 Breadstick spreads the pins out to cover the length of a breadboard – Hackaday.io and Github.

A pixel-model of the Raspberry Pi Pico

A pixel-model of the Raspberry Pi Pico, sized for display on the Adafruit MacroPad with CircuitPython – Adafruit Forums.

Vim Keyboard

A macro keypad for the Vim editor with the Adafruit MacroPad and CircuitPython – Adafruit Blog.

PixelWing ESP32-S2 RGB Matrix

The PixelWing ESP32-S2 RGB Matrix is coming out on Tindie, by Oak Development Technologies, running CircuitPython on an ESP32-S2 – Tindie and hackster.io.

Pomodachi

Pomodachi: a hardware Pomodoro timer virtual pet with an Adafruit HalloWing M4 Express and CircuitPython – GitHub and Hackaday.

Russell Is More Than a Giraffe — A Hackable CircuitPython SAM D21-Powered Badge

Russell Is More Than a Giraffe — a hackable CircuitPython SAMD21-powered badge – hackster.io, YouTube and Tindie.

YouTube Keyboard

A MacroPad/AdaBox19 hotkeys YouTube playback controls macro – Adafruit Forums.

Plasma

Writing some CircuitPython code to use a rotary encoder as an input for Pimoroni’s new Plasma 2040 – Twitter.

MicroPython support for the OAK-D-IOT platform

MicroPython support for the OAK-D-IOT platform – rahulrav.

CUDA Python

nVidia’s CUDA Python provides Cython bindings and Python wrappers for the driver and runtime API for existing toolkits and libraries to simplify GPU-based accelerated processing. The goal of CUDA Python is to unify the Python ecosystem with a single set of interfaces that provide full coverage of and access to the CUDA host APIs from Python – nVidia.

Space Game

OpenAI Codex, the AI system that translates natural language to code, had been improved and released through an API in private beta. It is demonstrated via a recent YouTube video making a JavaScript space game – Adafruit Blog, website and YouTube.

Getting started with Raspberry Pi Pico using MicroPython

Getting started with Raspberry Pi Pico using MicroPython – CircuitDigest.

Retrospective of Arduino’s Popularity

Why Your Dev Board Won’t Catch On: A Retrospective of Arduino’s Popularity – LinkedIn.

Languages like MicroPython and CircuitPython excite me, as they offer easy ramps to using microcontrollers, especially for those coming from the software world where Python is a popular language. They don’t necessarily solve the issue of cheap dev boards, but the communities do seem to be growing. Focusing on ease-of-use (despite any losses in efficiencies) is a key takeaway from the above factors. As an engineer, if I can’t understand your API and get an LED blinking in a couple of hours, I’m likely going to look elsewhere (unless, for some reason, I’m forced to use your platform).

20 useful tricks & tips in Python

20 useful tricks & tips in Python – Twitter Thread.

Return

Using the Python return Statement Effectively – Real Python and Twitter.

Python Standard Library security-specific recommendations – Python Documentation.

Python wrapper for the Walmart Open API

A fully featured Python wrapper for the Walmart Open API – Python Awesome and Twitter.

PyDev of the Week: Daniel Zingaro on Mouse vs Python

CircuitPython Weekly Meeting for August 16, 2021 (notes) on YouTube

#ICYDNCI What was the most popular, most clicked link, in last week’s newsletter? Why There are Now So Many Shortages (It’s Not COVID) (YouTube).

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 ten 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

Neo Trinkey CircuitPython Rubber Ducky from Dylan Herrada

MacroPad Remote Procedure Calls over USB to Control Home Assistant from Melissa LeBlanc-Williams

Scan QR Codes with CircuitPython from Jeff Epler

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

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

Dan

Dan

I was able to fix the “crackling” audio playback we were seeing on RP2040. Audio playback is done with two buffers which are used in alternation: while one buffer is being played using DMA, the other is being filled.

I instrumented the “DMA complete” interrupts and the buffer filling by toggling pins, and then observing the traces with a Saleae logic analyzer. I was able to determine that the wrong buffer was being filled when crackling audio was present. The flip-flopping between buffers was out of phase, probably due to an intermittent timing problem. I rewrote the code to determine which buffer actually needed filling by looking at the interrupt information in detail, instead of simply alternating between the buffers.

This same issue may be present on the SAMD51 implementation, which has similar code, and I’ll take a look at that.

On Wednesday, August 11, I released CircuitPython 7.0.0-alpha.6, three weeks after the previous alpha. We are making good progress towards 7.0.0 final but still have a number of issues to fix. I need to finish some API changes to the custom HID device code, and then we can start issuing beta releases.

Jeff

The qrio module I mentioned last week is in the recent alpha release of CircuitPython, and I’ve been working on a guide that introduces how to use it. Next up, I’ll be doing a week of bug-squashing to bring us closer to a stable release of CircutPython 7.

Kattni

This week I updated the PCF8523 and DS3231 guides to include the STEMMA QT updates to the breakouts. Typically we replace header-only versions with the STEMMA QT versions, but in this case, the originals are still so popular, we added these as new products. So, instead of the guides being updated to be primarily STEMMA QT, they include both versions equally.

I also completed a lot of miscellaneous tasks that came up including PR testing and merging and working through an obtuse CI failure on a different PR.

I’m still working on a MacroPad example that types out common phrases that I use on GitHub for me, but I still haven’t settled on what phrases I want to use. The project includes Fidget Mode, which makes it so the MacroPad stops sending HID so I can fidget with the light up keys without sending errant strings to my computer. I updated Fidget Mode to be on by default, requiring a manual disable by pressing the rotary encoder switch, and enabling automatically after a customizable delay. That way I don’t have to remember to enable it!

Melissa

This past week was shorter because I was out sick for part of it. I did however finish up my guide on MacroPad Remote Procedure Calls over USB to Control Home Assistant. This goes over using Remote Procedure Calls to have the MacroPad communicate with the desktop and remotely run functions to allow the MacroPad to control things on your network.

Scott

This week I’ve continued fixing bugs in CircuitPython for 7.0.0. The two bugs I’ve been working on are tweaking time tracking on the SAMD21 which caused autoreload to break while doing PulseIn and fixing timer reset on the SAMD21 when pwmio isn’t enabled. I’m going to tackle a few more bugs and then switch to expanding the BLE file transfer protocol a little to work better with the iOS files app.

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.

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-alpha.6. New to CircuitPython? Start with our Welcome to CircuitPython Guide.

20210814 is the latest CircuitPython library bundle.

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

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

2,542 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.

Job of the Week

Open Hardware Summit Chair – Open Source Hardware Association (OSHWA) – Adafruit Jobs Board.

30,456 thanks!

30,456 THANKS

Adafruit Discord

The Adafruit Discord community, where we do all our CircuitPython development in the open, reached over 30,456 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

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.


Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards

Join Adafruit on Mastodon

Adafruit is on Mastodon, join in! adafruit.com/mastodon

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.

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!

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

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


Maker Business — “Packaging” chips in the US

Wearables — Enclosures help fight body humidity in costumes

Electronics — Transformers: More than meets the eye!

Python for Microcontrollers — Python on Microcontrollers Newsletter: Silicon Labs introduces CircuitPython support, and more! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

Adafruit IoT Monthly — Guardian Robot, Weather-wise Umbrella Stand, 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! — #NewProds 7/19/23 Feat. Adafruit Matrix Portal S3 CircuitPython Powered Internet Display!

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.