Tag Archives: Python

How to use the RP2040’s Flash in CircuitPython apps

Here’s a very useful technique if you’re working on a CircuitPython program that you need to store data on the host microcontroller’s Flash — and to continue to be able to mount and access the device from your computer. I’ve used it with a Raspberry Pi RP2040-based board, but it should work with other CircuitPython devices too.

A typical mounted CircuitPython device: files are accessible, but the app can’t access the Flash
A typical mounted CircuitPython device: files are accessible, but the app can’t access the Flash
Continue reading

Raspberry Pi Thermal Printing: an update

Reader Daniel Boira recently asked me if I’d experimented with printing large characters on the SparkFun thermal printer (see Hacking a Thermal Till Printer…) that I’d rigged up to my Raspberry Pi’s GPIO. I hadn’t done so, so I thought I’d give it a try.

Printing double-size text
Print characters tall, wide, or tall and wide
Continue reading