Controlling ESC with Arduino

This is how did it, I found that out by reading through this thread.

You could probably swap in the standard servo library as well.