Use the Servo library. An ESC takes the same type of signal as a servo. It is NOT standard PWM.
Steve