27 twi.
write((uint8_t) reg, &value,
sizeof(value));
35 twi.
write((uint8_t) reg, buffer, count);
94 return (
swap(temperature) + 12410) / 34;
124 outs <<
PSTR(
"MPU6050::accelerometer(x = ") << value.
accel.
x 128 outs <<
PSTR(
"MPU6050::temperature = ") << value.
temp <<
endl;
129 outs <<
PSTR(
"MPU6050::gyroscope(x = ") << value.
gyro.
x bool begin(uint8_t clksel=CLKSEL_PLL_GYRO_X_REF)
uint8_t read(Register reg)
void read_gyroscope(sample_t &s)
void write(Register reg, uint8_t value)
IOStream & operator<<(IOStream &outs, MPU6050 &mpu)
int read(void *buf, size_t size)
int write(void *buf, size_t size)
Accelerometer Configuration.
IOStream & endl(IOStream &outs)
Accelerometer Measurements.
void read_motion(motion_t &m)
void acquire(TWI::Driver *dev)
uint8_t FS_SEL
Full Scale Range.
int16_t read_temperature()
uint8_t CLKSEL
< As bitfields.
uint8_t AFS_SEL
Full Scale Range.
void read_accelerometer(sample_t &s)