This repo demonstrates how to work with an Arduino's PWM outputs in a clean programmer-friendly way. It packages all the low-level interaction with timer clocks that underly PWM functionality, ...
fast: 23 frames per second by employing both cores of the RP2040 (whereas a single core would only result in 11 fps): pimoroni 56€ https://shop.pimoroni.com ...