Python
Python Dispatch: Making the GIL Optional
The Steering Council have made a huge announcement regarding the future of Python. Namely, they have decided to make the Global Interpreter Lock (GIL) optional in CPython and eventually remove the GIL altogether. This is a huge decision that will fundamentally alter Python. Therefore, in this post, I’ll go through what the GIL is, its…
Read MoreWhat’s the difference between CPython, MicroPython, & CircuitPython anyway?
CPython, MicroPython, and CircuitPython hold a dear place in the hearts of many a tinkerer. But it’s not always clear what the differences are. And if you’re messing around with microcontrollers for the first time, these distinctions can play a key role in understanding what’s up with your code. So, in this article, I will…
Read More9 Tricks with the Python REPL
Of course, the Pi in Raspberry Pi comes from Python, one of the most popular programming languages in the world and especially popular among tinkerers and makers. In this post, I want to give you 9 tricks and tips with the Python REPL – but don’t worry if you’re not super familiar with Python or…
Read MoreWhich programming language should you use for a Raspberry Pi?
If you are new to the Raspberry Pi, you might find yourself at the crossroads of choosing a programming language to learn. There are so many languages out there and what you decide to learn will have a profound effect on what you can do. So, let’s take a look at the languages you can…
Read MoreCircuitPython, Adafruit Feather RP2040, and I2C
As you probably guessed by the title, this article discusses CircuitPython, the Adafruit Feather RP2040, and the I2C communication protocol. The RP2040 has two I2C controllers – good for example, when you want to run two I2C devices with the same I2C address. In my test setup, I have an Adafruit Feather RP2040 microcontroller board,…
Read MoreC extension for MicroPython on Raspberry Pi Pico
This is a guide on how to write and run a basic C extension for MicroPython on the Raspberry Pi Pico. I will cover reasons for extending MicroPython, how to write the extension module, how to compile it and how to install it on the Pico. If you want to read more about this topic,…
Read MoreRaspberry Pi Pico and MicroPython on Windows
This article answers the question: How do I use the Raspberry Pi Pico with MicroPython on Windows? We also show how to install the right driver for “Board CDC” (which the Pico will show up as once MicroPython is installed) on Windows 8.1. (We will also discuss the differences between MicroPython and CircuitPython where applicable…
Read More