PWM Mysterious - XIAO SAMD21

Control the switches from XIAO too

I would suggest upgrading to XIAO ESP32C3 so you can uses OTA updates to do wireless changes to the program

Also check into how musical notes are played in coding

You could write a script like a sheet of music to command the sequence exactly

For example F command may move forward one inch
R command move reverse 1 unit
B command break

So a command might be such as FFFBRRRB