Using a accelerometer to light an LED

Hi guys,

So I've had a bit of a disaster. I'm new to coding and one week out from my assignment due date I've lost a large chunk of my code. One small part of my project involves using an adxl335 accelerometer to turn on an LED when shook. I am yet to write code for this but now as i have to spend the next week trying to remember all my other code I'm a bit stuck for time.

I was wondering does anyone out there already have code that could light an LED using an adxl335 acclerometer, just a very simple process is perfect.

Thanks to anyone who can help,

Sarah