Firmware for an STM32-based on-screen display