Hi @marcuspresakald,
This example is designed to control a servo, not ESC with a motor. You can try the script from here: