accelerometer programming

Okay thank you, what about commanding it, how will I go about doing so because as I said I'm new and I don't know how to command