Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void setup(){
int error;
uint8_t c;
Serial.begin(9600);
Wire.begin();
error = MPU6050_read (MPU6050_WHO_AM_I, &c, 1);
error = MPU6050_read (MPU6050_PWR_MGMT_2, &c, 1);
MPU6050_write_reg (MPU6050_PWR_MGMT_1, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.