No sleep(), no Thread, no worries

March 10, 2018

This post is aimed at relatively new programmers grappling with how to manage multiple simultaneous things on their PiWars robots (for example, reading from a game controller without any lag while also managing a distance sensor that can only be read once a second!) I’ve had a few questions on Discord and Twitter about how […]

Dissecting the rainbow

March 5, 2018

If you’re entering this year’s PiWars competition you might have encountered some example code, originally from PiBorg, intended to get you going with the ‘Over the Rainbow’ challenge. If you’re not familiar with OpenCV, however, you might find this code a bit baffling. So, in this post I’m going to go line-by-line through the image […]