Heartbeat
Toggle the LED on GPIO PA5 on and off five times by writing the GPIO registers directly. The pin is observed from outside, like a logic analyzer on real hardware, so no helper functions are needed.
Registers: MODER (output mode), ODR or BSRR (set and clear).