MPU6050 +stapper motor stabilizer

Hello everyone, right now i'm stuck of combine mpu6050 with PID to control stepper motor, And the axis that i want to use in this project is pitch and yaw axis, so please teach me to write a sample code or provide me some example that related to this project.

Please read and follow the instructions in the How to use this forum post.

Use the example