programming brushless dc motor

can ne1 pls tel me how to program a bldc motor using a electronic speed controller......sample programs will be really helpful!!!

ESCs typically take a standard servo pulse code input, so check out the Servo library.