
The Integer-Only Math Behind Circles and Lines on a Screen
I was working on a bare-metal driver for an SH1106 OLED display when I ran into a funny little problem: once the screen turns on, what do you actually draw with it? Text is one thing. You shove bytes into the display buffer, line up a tiny bitmap font, and boom, you have letters. But the moment you want a graphics library — circles, lines, filled shapes, all the fun stuff — the screen suddenly gets very opinionated. ...

