MCU-agnostic code