This commit is contained in:
2024-07-03 10:31:03 +03:00
parent 4a216e773b
commit 618b4f4b4d
4 changed files with 31 additions and 19 deletions

View File

@ -85,6 +85,8 @@ extern "C"
/**
* @brief Adjust BH1750 sensor sensitivity.
*
* @attention Can only be used if the automatic adjustment is not switched on.
*
* @param[in] value Value of sensitivity.
*
@ -93,7 +95,7 @@ extern "C"
* @return
* - ESP_OK if adjust was success
* - ESP_ERR_INVALID_ARG if parameter error
* - ESP_ERR_NOT_FOUND if BH1750 is not initialized
* - ESP_ERR_NOT_FOUND if BH1750 is not initialized or auto adjust is enabled
* - ESP_FAIL if sending command error or slave has not ACK the transfer
* - ESP_ERR_INVALID_STATE if I2C driver not installed or not in master mode
* - ESP_ERR_TIMEOUT if operation timeout because the bus is busy