banner
mrmartincowen.bsky.social
@mrmartincowen.bsky.social
YouTube has lost the plot, I assure you nothing in my search history would relate to this
November 15, 2025 at 4:13 PM
The funny thing about writing comments before coding in an interview: medium.com/@marciacripp...
is that I previously blogged about it
blog.martincowen.me.uk/comment-driv...

Why not adopt this practice every day?
November 12, 2025 at 9:01 PM
Hot take: speakers at conferences which will have a bigger video audience than in-person audiences should sit down. Even if most of the split screen is the slides, wandering around, kicking your feet and gesticulating is distracting and achieves nothing.
November 7, 2025 at 5:43 PM
Hmm...
November 6, 2025 at 5:25 PM
error handler function, back up one level.
November 6, 2025 at 12:41 PM
called function picks up file and line as variables and passes them on to a handler function via a pointer.

You can't avoid this by using __FILE__ etc in this function, or all calls will give the same values.
November 6, 2025 at 12:41 PM
Error handling with callbacks and line numbers in C.

If you put the __FILE__ and __LINE__ macros in the called functions, it will not show you the caller function location. Need to use a macro which wraps the function and passed params on, & adds these macros.
🧵
November 6, 2025 at 12:41 PM
If you want to find the shortcut for a command in VS Code, you can type the name of the command, but if you want to reverse look up the keys to see what the command is, you can click the keyboard icon on the right in the search bar and then type the shortcut keys.
Ctrl-K Ctrl-S brings this up.
November 6, 2025 at 11:16 AM
Still waiting for this guitar amp to be released commercially
November 6, 2025 at 8:40 AM
Z80 Assembly
October 31, 2025 at 2:30 PM
Addendum since finding WinLibs, seems better than TDM-GCC:
October 31, 2025 at 11:38 AM
C is simple language, they said. Then you get this comment in response to this talk www.youtube.com/watch?v=2KZg...
October 29, 2025 at 6:46 PM
Feels odd doing publicity photography, should be bottom of the priorities list, but then the results are worth it. Updated the blog header photo
from to
October 29, 2025 at 4:43 PM
C&K Button D6 model was badly offset and rotated in two axes
October 29, 2025 at 11:54 AM
and model has pins where it shouldn't - data sheet says 7, 8, 15 is no pin, and that's true of component.
October 29, 2025 at 11:45 AM
Even when you find the models, some offset or rotation can be needed. eg the IGS file from www.kingbrightusa.com/kcpn3d.asp?P... comes out with the face in the board plane, needed Z = 0.331 inch to correct
October 29, 2025 at 11:45 AM
Were there 12 of them?
October 29, 2025 at 8:31 AM
Reminder of the board that this firmware is for: Countdown Timer PCB

#electronics #firmware #STM32 #KiCad
October 28, 2025 at 6:07 PM
Tell me you've written a giant pile of code and have just found out that your compliance procedure requires tests a few weeks before the release date, without telling me.
October 28, 2025 at 12:26 PM
Was in Website Speed under Responsive images which seems to affect all screen resolutions, didn't realise that.

Before and after
October 24, 2025 at 4:01 PM
Having extolled the virtues of diagrams, I felt the need to add another one to this post to explain the program and data flow, especially when you can't yet see the complete code.
October 23, 2025 at 10:39 AM
📫New on the blog: blog.martincowen.me.uk/using-finite...

Second of 4 posts on the firmware for my PCB, covering designing FSMs, using DOT language, Graphviz and visualisers to autogenerate C code with a python script. Links to expert calcs on real-time scheduling.

#STM32 #firmware
October 22, 2025 at 11:32 AM
Only 75, pfft, I had 200 in 1. Trying to get the fourth wire into a spring which already had 3 without them falling out was a distraction from the real learning, unfortunately. Now if only it was accompanied by an online circuit simulator like falstad, that would have multiplied the effectiveness.
October 20, 2025 at 2:51 PM
Don't Microsoft have their own cloud servers? Why are they using Amazon's? 😉
October 20, 2025 at 8:53 AM
The M and the N standout immediately as not being possible in 7-segment. So maybe it's 14-segment, but notice how the D differs from the O in the left corners, with the same segment having a different shape depending on which letter it is part of. T and I incompatible too.
October 17, 2025 at 10:55 AM