Merge pull request #10694 from MrKevinWeiss/pr/bh1750fix

drivers/bh1750: Fix mislabeled i2c address
This commit is contained in:
Alexandre Abadie 2019-01-03 09:50:56 +01:00 committed by GitHub
commit 552909cf90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,14 +33,14 @@ extern "C" {
* 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_HIGH (0x23) /**< ADDR pin := 1 */
#define BH1750FVI_ADDR_PIN_LOW (0x23) /**< ADDR pin := 0 */
#define BH1750FVI_ADDR_PIN_HIGH (0x5c) /**< ADDR pin := 1 */
/** @} */
/**
* @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