Monthly Archives: July 2021

OLED #rp2040 C++ library gets a blocking boost

I’m continuing to refine my OLED I2C library. I sped up the library 10X by the simple expedient of increasing the baudrate of the I2C transfer. Transferring a whole 128×64 bitmap to OLED still took about 12ms. I wanted more … Continue reading

Posted in Uncategorized | Leave a comment

Kicking the tyres of Ada for the #rp2040

In my last post I said that I seemed to have accidentally set off interrupt triggers by writing to the wrong bits of a register. It got me to wondering whether something like Ada might be a better bet. I … Continue reading

Posted in Uncategorized | Leave a comment

Simple memory-to-memory STM32F4 DMA example using libopencm3

Well, it took me most of the day to get it working, but I got there in the end. The idea is that we want to copy memory from one location to another using DMA. Maybe it’s not especially useful, … Continue reading

Posted in Uncategorized | Leave a comment

K.I.S.S. state machine/cooperative concurrency for embedded systems

Although my primary interest is in embedded systems, I’ll present code that runs on a Linux system for illustrative purposes. But first, a little diversion. My thinking towards embedded systems is tending more and more towards a radical simplicity. I … Continue reading

Posted in Uncategorized | Leave a comment