i2c_master_write_byte() function
Queue a "write byte" command to the commands list. A single byte will be sent on the I2C port. This function shall only be called in I2C master mode. Call `i2c_master_cmd_begin()` to send all queued commands
Arguments
cmd_handle
I2C commands list
data
Byte to send on the port
Return value
- ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error - ESP_ERR_NO_MEM The static buffer used to create `cmd_handler` is too small - ESP_FAIL No more memory left on the heap
i2c_master_write_byte() is called by 6 functions and calls 3 functions:
![]()
i2c_master_write_byte()
i2c_master_write_byte() reads 6 variables:
![]()
i2c_master_write_byte()