mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 20:21:04 +00:00
refactor (cxx): C++ I2C example now uses MPU9250 instead of MCP9808
Also fixes the documentation of I2CTransfer::sync_transfer().
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user