Category Archives: Raspberry Pi

Introducing C++ programming on the Raspberry Pi Pico

When I started programming the Raspberry Pi Pico, I used the C language because I’ve worked with it before. The Pico’s SDK also supports C++, but I’ve never used C++. When I started Mac programming in the early 1990s, C was the clear choice. By the time I needed to do object-oriented programming, Apple had bought NeXT and the way to do OOP on macOS was Objective-C not C++. The Pico has given me chance to join the party.

Continue reading

How to use zmv — Z Shell’s super-smart file renamer

I’d like to introduce you — if you’re not already acquainted — to the Z Shell’s incredibly handy function zmv. If you ever need to change at the command line the names of a batch of files consistently, it’s the tool you’ll want to turn to first. It’s not well known, and having been given the nod by a colleague, I thought I’d explore and pass on some notes about taking advantage of it.

Continue reading

Enjoy some old school 3D arcade action — courtesy of the Raspberry Pi Pico

In the mid-1980s, I loved Phantom Slayer. Written for the Tandy Color Computer and made available for the Dragon 32, Phantom Slayer was a 3D maze shooter. Think a very basic version of Doom with colours but no textures. It wasn’t sophisticated, but it was quick and, more to the point, incredibly atmospheric.

The Pi Pico version of Phantom Slayer
Do you have what it takes to face down the Phantoms?
Continue reading

Play Hunt the Wumpus, Raspberry Pi Pico style

Here’s something a little different: a basic C project that you can follow to build a fun handheld game with a Raspberry Pi Pico. Your mission: to enter a dark cave, and then locate and destroy the monstrous Wumpus.

Locate and eliminate the monstrous Wumpus to win fabulous prizes… well, a trophy graphic…
Continue reading

How to debug a Raspberry Pi Pico with a Mac, SWD and… another Pico

When you’ve used Serial Wire Debug (SWD) to help you correct the C or C++ code running on your Raspberry Pi Pico, you’ll never want to go back to USB and the UF2 file system again. I don’t — no more messing about unplugging and re-plugging cables for me.

The Raspberry Pi Pico
The Raspberry Pi Pico is ready for Serial Wire Debugging
Continue reading

How to program the Raspberry Pi Pico in C on a Mac

Last week I tried the Raspberry Pi Pico with MicroPython. The Raspberry Pi Foundation would be sufficiently commended for providing only this level of programming support. MicroPython leverages the Python skills of the many Raspberry Pi users out there and is accessible to plenty of others too. But the Foundation has also provided a C/C++ SDK, and this opens the Pico up to serious embedded-system developers too.

The Raspberry Pi Pico
Continue reading

A first look at a MicroPython marvel: the Raspberry Pi Pico, in partnership with a Mac

On Thursday morning I awoke to the news that the Raspberry Pi people have entered the microcontroller board market with a new product, the Raspberry Pi Pico. Before I’d even got out of bed, I ordered a couple. Well, at £3.60 a pop, why not? I’ve now had a chance for a quick play, and here are my findings.

The Raspberry Pi Pico
“Yeah, I know it — it’s on Pico…”
Continue reading