Skip to content

Commit

Permalink
Add i2c mpu6050 write functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
fred13kim committed Nov 7, 2024
1 parent 1c1737b commit 6533cd7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/drivers/mpu6050/mpu6050.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ static void i2c_mpu6050_read(i2c_master_dev_handle_t i2c_dev,
i2c_dev, &addr, 1, data, num_bytes, I2C_TIMEOUT_MS);
}

static void i2c_mpu6050_write(
i2c_master_dev_handle_t i2c_dev, uint8_t *data, size_t num_bytes)
{
i2c_master_transmit(i2c_dev, data, num_bytes, I2C_TIMEOUT_MS);
}

void mpu6050_init(void)
{
i2c_master_bus_config_t i2c_master_conf = {
Expand Down

0 comments on commit 6533cd7

Please sign in to comment.