Lambda function for controlling the motor using PWM (Pulse Width Modulation).
Delegates to controls.pwmControl.