ICYMI Python on Microcontrollers Newsletter: Python Reaches #1, 3K Core CircuitPython PRs and much 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,083 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.


Presenting 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. On to the show!

Python Becomes the #1 Programming Language via TIOBE

Python #1

For the first time in more than 20 years, the TIOBE programming language index has a new leader of the pack: the Python programming language. The long-standing hegemony of Java and C is over. Python, which started as a simple scripting language, as an alternative to Perl, has become mature. Its ease of learning, its huge amount of libraries, and its widespread use in all kinds of domains, has made it the most popular programming language of today. Congratulations Guido van Rossum and the many contributors to the Python ecosystem! – TIOBE.

Mu editor version 1.1.0-beta.6 is out with Multilanguage Support

Mu

Beta 6 of the Python editor Mu is now available, with a dozen changes including Multilanguage support – Adafruit Blog and madewith.mu.

Download the software free at codewith.mu.

Over 3,000 Closed Pull Requests in CircuitPython Core!

3,000 Closed Pull Requests in CircuitPython Core

There have now been over 3,000 closed (both merged and unmerged) Pull Requests in CircuitPython core, showing just how much active development has been happening! From CircuitPython’s humble beginnings to CircuitPython 7.0.0, this open source project keeps getting better and better – GitHub.

The Stage Game Library for CircuitPython is Ported to the Pimoroni PicoSystem

Stage

With the help of Gadgetoid at Pimoroni, Deshipu has ported the CircuitPython Stage game library to the Pimoroni PicoSystem, a Raspberry Pi Pico-based gaming device. Both Vacuum Invaders and Jumper Wire work fine – Twitter.

Learn more about the Stage game library – Adafruit Learning System.

Guido van Rossum Talks About Speeding Up Python

Guido van Rossum

The Software at Scale Podcast 34 presents “Faster Python with Guido van Rossum”. They discuss Guido’s new work on making CPython faster (PEP 659), Tiers of Python Interpreter Execution, and high impact, low hanging fruit performance improvements – Software at Scale.

A Limited-Edition CircuitPython 7 Poster Available

CP7 Poster

A limited-edition CircuitPython 7 Poster is now available from Adafruit. Unlike previous releases, the printer could only make a small number of posters and they are expected to go quickly – Adafruit.

Awesome Actions

Awesome Actions

Awesome Actions is a curated list of awesome things related to GitHub Actions. Actions are triggered by GitHub platform events directly in a repo and run on-demand workflows either on Linux, Windows or macOS virtual machines or inside a container in response. With GitHub Actions, you can automate your workflow from idea to production – 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 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.

Hacktoberfest Begins October 1st

Hacktoberfest 2021

Hosted by DigitalOcean for the 8th year in a row, Hacktoberfest encourages participation in giving back to the open source community by completing pull requests, participating in events, and donating to open source projects.

Anyone around the globe who desires to help drive the growth of open source and make positive contributions to an ever-growing community. All backgrounds and skill levels are encouraged to participate. The first 55,000 participants can earn a T-shirt. Learn more – DigitalOcean.

For CircuitPython, issues will soon be tagged for Hacktoberfest. Good First Issues and open issues will both be featured. It is anticipated that the number of CircuitPython issues to work on will be higher this year.

October is also Open Hardware Month

Open Hardware Month

October is Open Hardware Month! The Open Source Hardware Association (OSHWA) is providing resources and asking the community to host small, local events in the name of open source hardware. See more – OSHWA.

CircuitPython Deep Dive Stream with Scott Shawcroft

Deep Dive with Scott

This week, Scott covers progress on the Cortex A work for Raspberry Pi. He’s been working on expanding the system view description (SVD) files and learning all about the Generic Interrupt Controller (GIC400 / GICv2).

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:

Catch all the episodes in the YouTube playlist.

News from around the web!

Choosing a Board for CircuitPython

CircuitPython School – Choosing a Board for CircuitPython: A Few Important Considerations – YouTube via Twitter.

Other new episodes:

  • CircuitPython School Lesson 18 – random numbers, non-repeating randoms, and sparkly holiday ornament – YouTube via Twitter.
  • CircuitPython School Lesson 19 – Typing and keyboard control using the HID library – YouTube via Twitter.

Displaying analog dials

Pushing my coding skills to the limit while working on a parametric dial indicator method for this dual scale project. CircuitPython displayio works well – responsive enough for most projects. Planning to use the method for analog clocks, meters, and other dials (volume, etc.) – Twitter.

Adobe Lightroom Macro Pad

Make an Adobe Lightroom Macro Pad with Raspberry Pi Pico and CircuitPython – Adafruit Blog and GitHub.

Skull Candy

Updated the Circuit Playground Bluefruit code to work with CircuitPython 7 – Twitter.

The head’s phrases can be controlled simply by pressing buttons on the Adafruit Bluefruit Connect app. It’s fun to set up in the common area outside my office and have it beckon passers by. A really easy and fun build.

PyBasic on a Keyboard FeatherWing

A demonstration of PyBasic running autonomous on a FeatherS2 and a Keyboard FeatherWing from Arturo182 fully working BASIC, programming on the go – YouTube via Twitter.

PicoLight

PicoLight is a minimalist adjustable light for low-light photography, based on the Raspberry Pi Pico and CircuitPython – GitHub and Hackster.

Make Art

Yifan Zhou’s “Make Art” project for the Boston College Physical Computing course. Uses Adafruit Circuit Playground Bluefruit boards and CircuitPython – Twitter.

LEDarcade

LEDArcade is a graphics library for Adafruit LED matrices – This Old Coder and GitHub.

Maker HAT Base

Maker HAT Base allows easy access to the Raspberry Pi 400 GPIO pins with Python and CircuitPython Blinka – Cyton via Twitter.

Weather station

Making a tiny weather station with the Pimoroni Pico Explorer and MicroPython – Twitter.

Halloween Book

Making a Halloween Book with CircuitPython and Adafruit FX Soundboard, PyPortal, NeoKey, Mini Boost, Powerboost 1000, and Raspberry Pi Pico – Twitter and Adafruit Blog.

CH559 (USB to Serial) CircuitPython Library

A CH559 (USB to Serial) CircuitPython Library – GitHub and Twitter.

MQTT

I’ve been doing some MQTT in CircuitPython these last few weeks and I wanted to record (for myself really) how I was testing and using it. So here’s a gist and a quick video of a simple example – GitHub via Twitter.

MQTT Joystick

Connect a Joystick to an ESP32 board to running MicroPython. This talks to JavaScript applications via MQTT (by using a mosquitto message broker installed to a Raspberry Pi) – LinkedIn (Italian) and Twitter.

Self watering plant

PyCon South Africa talk “Building a self watering plant using MicroPython on a WiFi enabled ESP8266” – Twitter.

Miffy bunny

Connecting a Miffy bunny to the Internet of Things with MicroPython, ESP8266 and MQTT – Adafruit Blog.

MicroPython Clock

MicroPython is seriously awesome, here’s a build I did of someone’s Raspberry Pi Pico Clock – Twitter and GitHub.

Is 40 the New 60?

(Kids vector created by macrovector – www.freepik.com)

Is 40 the New 60? Older age discrimination in programming – Never Work in Theory.

PyBasic

PyBasic is a simple interactive BASIC interpreter written in Python – GitHub, Hackaday.

Ladyada from Adafruit ports PyBasic to an Adafruit PyPortal running CircuitPython – YouTube.

Bython

Bython is Python with braces. Bython is a Python preprocessor which translates curly brackets into indentation. “Because Python is awesome, but whitespace is awful” – GitHub.

Cool New Features in Python 3.10

Cool New Features in Python 3.10 – Real Python via Twitter.

Awesome QR Code

Awesome QR Code is a curated list of awesome QR code libraries, software and resources – GitHub.

Peregrine

The Peregrine programming language – A Python-like language that’s as fast as C – Dev and Update.

HotWaterCam uses code to delineate surface water extent extraction using TIR and optical cameras. It uses a Raspberry Pi Zero and Python, including Adafruit Blinka to perform a number of functions via CircuitPython – GitHub.

House brain is a Python / Django home automation project based on a Raspberry Pi which will initially be responsible for managing home heating. The Raspberry is connected to temperature probes, to radiator controls and to EDF remote information. The user interface is a Django Celery application, in charge of periodic tasks (reading of temperatures and remote information, monitoring of the power used) – GitHub.

PyDev of the Week: Pedro Pregueiro from Mouse vs Python

The CircuitPython Discord chat usually held Mondays was postponed until Tuesday at 2PM US Eastern Time due to a US holiday (Columbus/Indigenous Peoples Day). The link will be published next week.

#ICYDNCI What was the most popular, most clicked link, in last week’s newsletter? The Indie Python Free Book Extravaganza.

Coming soon

OakyWing Hacker Watch

The OakyWing Hacker Watch – featuring an RP2040, nRF52811, CircuitPython support and buttons. This will require 6-layer service from Oshpark to get the right drill/annular ring sizes for the nRF52 – Twitter Thread.

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 one new board 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

Mini LED Matrix Audio Visualizer from Liz Clark

ANO Directional Navigation and Scroll Wheel Rotary Encoder and Breakout 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 336!

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 have been working on “boot keyboard” support for USB HID. BIOSes and similar pre-boot software in the past did not have the code space to support general USB HID keyboards and mice. Instead, the USB standard allows that software to request that the keyboard or mouse use a standardized description. I implemented this in CircuitPython, but it did not work quite right. Ha Thach helped me discover that the BIOSes want the rest of the USB description to be even simpler as well. I will try that out. This also gave me an idea about how to simplify the Adafruit Windows 7/8.1 driver package so it works more like Windows 10, and we don’t have to keep adding new boards to it. We’ll see whether it works.

I have been going through some issues we want to fix for the next 7.x release. Most have been simple. A number of built-in modules were not allowing keywords to be used for required arguments: I’ve fixed that.

Jeff

It’s a new month, I guess that means it’s time to implement a library for another camera module in CircuitPython. This time it’s the OV5640, a module with a 5 megapixel sensor. I made a short video about it, which you can catch on the Adafruit Blog. As the video says, we’ll add the library to the Bundle when it’s mature.

Kattni

This week I published the ANO Directional Navigation and Scroll Wheel Rotary Encoder and Breakout guide. It has everything you need to get started with your ANO rotary encoder and accompanying breakout including an overview, pinouts, downloads resources and examples in both CircuitPython and Arduino.

Next up is a guide for the new EyeLights LED Glasses Driver and Panel. It’s already chock full of all kinds of details and examples for these boards, and there’s still more to come. Keep an eye out for that guide coming soon!

Melissa

This past week, I dove back into JavaScript and updated the JavaScript version of the Bluetooth File Transfer library to include the remaining functions the the CircuitPython version had. The next step is to make use of those new functions and supercharge the CircuitPython Code Editor at https://code.circuitpython.org/.

Scott

At the end of last week I setup the broadcom-peripherals repository for storing the lowest level bits for treating the broadcom chips on Raspberry Pis as bare metal microcontrollers rather than complex application processors. This repository includes system view description (SVD) files describing the register layout of peripherals. These files can then be loaded into GDB for debugging and be used to generate C headers. The low level C functions are then built on top of the generated C headers.

After I got this going, I generated info for the VideoCore Mailbox which is how the ARM cores communicate to the VideoCore GPU. Through this mailbox I ask the GPU to enable power to USB and then TinyUSB can start up the USB peripheral.

Next, I’m working on connecting up the peripheral interrupts. These are needed to tell TinyUSB that something has happened on the USB bus so TinyUSB can respond. (It also does many other signals.)

Lastly, I assembled my debug hat that makes it easier to debug the pi itself. The board has four LEDs that have the signals out on pins, UART pin out, “SWD” form of JTAG, regular JTAG and a Stemma QT connector. Check out the board at OSH Park.

Upcoming events!

PyCon Sweden

PyCon Sweden 2021 will be held on 21-22 October, online for free – more.

PyCon Chile

PyCon Chile is coming November 5, 6 and 7th online – one day of workshops and Sprints, two days of talks! – more.

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

20211011 is the latest CircuitPython library bundle.

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

3.10.0 is the latest Python release. The latest pre-release version is 3.11.0a1.

2,612 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

Senior Frontend Engineer (Flutter) Full-Time, 100% Remote – Laudable – Adafruit Jobs Board.

31,271 thanks!

31,271 THANKS

Adafruit Discord

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


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 — Savannah tells the story of the supply chain crisis in the U.S.

Wearables — Feathers from leather

Electronics — Get Oriented!

Python for Microcontrollers — Python on Microcontrollers Newsletter: Events, Projects, and much more! #Python #Adafruit #CircuitPython @micropython @ThePSF

Adafruit IoT Monthly — No-Code IoT with WipperSnapper, Beaming Internet across the Congo, 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 10/20/21 feat. DIN Rail 10×10 to Terminal Block Adapter!

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.