GY-50 L3G4200 gyroscope

how do we set up a code to run a servo or stepper motor? i have the same setup as well UNO plus L3G4200D thanks guys!