Merge pull request #10694 from MrKevinWeiss/pr/bh1750fix
drivers/bh1750: Fix mislabeled i2c address
This commit is contained in:
commit
552909cf90
@ -33,14 +33,14 @@ extern "C" {
|
|||||||
* The actual address of the device depends on the state of the ADDR pin.
|
* The actual address of the device depends on the state of the ADDR pin.
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define BH1750FVI_ADDR_PIN_LOW (0x5c) /**< ADDR pin := 0 */
|
#define BH1750FVI_ADDR_PIN_LOW (0x23) /**< ADDR pin := 0 */
|
||||||
#define BH1750FVI_ADDR_PIN_HIGH (0x23) /**< ADDR pin := 1 */
|
#define BH1750FVI_ADDR_PIN_HIGH (0x5c) /**< ADDR pin := 1 */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Default address of BH1750FVI sensors
|
* @brief Default address of BH1750FVI sensors
|
||||||
*/
|
*/
|
||||||
#define BH1750FVI_DEFAULT_ADDR BH1750FVI_ADDR_PIN_HIGH
|
#define BH1750FVI_DEFAULT_ADDR BH1750FVI_ADDR_PIN_LOW
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Maximum I2C bus speed to use with the device
|
* @brief Maximum I2C bus speed to use with the device
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user