Accelerometer to Servo?

I did use the search..Looking around on the forums and online I have seen many video examples, but no sketch examples? Can someone kindly point me to a good sketch example for using a accelerometer with 2 servos?

Thanks

What do you want to accomplish? the story behind te question

How many dimensions should the accelerometer have? 1,2,3 more?

I am wanting to control a webcam with 2 servos. left/right and up/down.

something like this?
http://hacknmod.com/hack/how-to-cheap-accelerometer-using-wii-nunchuck/