Created
November 11, 2017 01:36
-
-
Save esmarr58/b92a880dbce51338ba19e2d13ecdb3f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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