Author Archives: mcturra2000

About mcturra2000

Computer programmer living in Scotland.

The entire WWW summed up in three pictures

“For Wales? Why Richard, it profit a man nothing to give his soul for the whole world. . . but for Wales!” ― Robert Bolt, A Man for All Seasons (Way to trashtalk an entire country, Bob. You really slipped … Continue reading

Posted in Uncategorized | Leave a comment

Gemini: a www alternative

So, do think that watching scantily-clad young ladies twerking in their bikinis on OnlyFans is a bunch of bullshit? Concerned that Google, Microsoft and Facebook are becoming the gatekeepers of the internet? Annoyed that most sites have become bloated pieces … Continue reading

Posted in Uncategorized | Leave a comment

Microcontroller API design: separate out concerns

My tip: try to separate out device-specific code from SDK-specific code. By “device”, I mean any physical piece of hardware like a DS3231 real-time clock, or an SSD1306 OLED display. Something that you attach to your mcu (microcontroller). By “SDK” … Continue reading

Posted in Uncategorized | Leave a comment

Is it my imagination, or is the #rp2040 more reliable than the #stm32?

Maybe I’m doing things wrong, but I wonder if people have found the RP2040 to work better than STM32’s? Just some of the peculiarities I’ve noticed: I couldn’t quite get an oled display working with an STM32L432KC, and resorted to … Continue reading

Posted in Uncategorized | Leave a comment

Time to break out the tinfoil and make myself a hat

So, Google Mail is going to switch to 2FA (two-factor authentication). It seems that somewhere along the chain a phone number is required. I am not happy. Microsoft’s Github is going to switch on 2FA before the end of 2023. … Continue reading

Posted in Uncategorized | Leave a comment

A quine in the Daft programming language

“Will Hare replace C? Or Rust? Or Zig? Or anything else?” (link) Zig, Nim, Rust, Odin, and occasionally D, as languages that appear on Hacker News. It inspired me to start mucking around with a silly exercise. It is based … Continue reading

Posted in Uncategorized | Leave a comment

Square-wave and boolean-modulated output using sampling

Abstract Tones of a specified frequency can easily be produced on nearly all mcus (microcontrollers) using pwm (pulse-width modulation). The output is a square wave. This post explores the use of sampling to produce frequency waves. Although this is more … Continue reading

Posted in Uncategorized | Leave a comment

#libopencm3 examples for stm32f411

The examples may work on other STM32 microcontrollers, with modification. Such examples include: a basic blink sketch, timers, exti, newlib integration with uart, spi, dma, i2c, pwm, systick, ssd1306, ds3231. So, quite a wealth of things to choose from. Check … Continue reading

Posted in Uncategorized | Leave a comment

My #rp2040 dev board wish-list

Here’s what I want to see in a dev board: Put the pins closer together (longitudinally, of course) so that the board can be inserted into a standard 40-pin IC socket. Forget castellations. Number the pins on the topside of … Continue reading

Posted in Uncategorized | Leave a comment

A nightmare function to kill you in your sleep in #golang

Clickbait title much? I am not a golang programmer. I’m mostly C/C++. I had played with golang many many years ago. I didn’t like it much at the time. I recently thought about parsing a binary file using golang, but … Continue reading

Posted in Uncategorized | Leave a comment