I tried to write (0x01)to the Configuration CONFIG Register(0x1A) to set the DLPF_CFG bandwidth 188Hz,and read the register to check the value is right or not,but it still is zero.
uint8_t h;
Wire.beginTransmission(0x68);//mpu6050 address
Wire.write(0x1A);//register address
Wire.write(0x01);
Wire.endTransmission();
delay(2000);
Wire.beginTransmission(0x68);
Wire.write(0x1A);
Wire.endTransmission();
Wire.requestFrom(0x68,1);
h=Wire.read();
Serial.println(h);
I can read the value right by some registers have default values(register 107&117),so I think the reading part is right,which part of the code is wrong?
Thanks.