Here’s a small function for servomotor control in Micropython. Just copy it onto the device (RP2040 or ESP32). Then import it in your code.