refactor (cxx): C++ I2C example now uses MPU9250 instead of MCP9808

Also fixes the documentation of I2CTransfer::sync_transfer().
This commit is contained in:
Jakob Hasse
2021-11-17 10:29:50 +08:00
parent 460f3ad7b6
commit de6bc33f3c
14 changed files with 141 additions and 113 deletions

View File

@@ -229,7 +229,7 @@ public:
std::vector<uint8_t> sync_read(uint8_t i2c_addr, size_t n_bytes);
/**
* Do a simple asynchronous write-read transfer.
* Do a simple synchronous write-read transfer.
*
* First, \c write_data will be written to the bus, then a number of \c read_n_bytes will be read from the bus
* with a repeated start condition. The slave device is determined by \c i2c_addr.