From b870dbb3b91618284cb2ccdd3d18c5e9e06b3d94 Mon Sep 17 00:00:00 2001
From: MrKevinWeiss <weiss.kevin604@gmail.com>
Date: Thu, 3 Jan 2019 09:08:31 +0100
Subject: [PATCH] drivers/bh1750: Fix mislabeled i2c address

The i2c address when the pin is high/low are swapped.
This swaps them to match the datasheet and changes the default to low.
---
 drivers/include/bh1750fvi.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/include/bh1750fvi.h b/drivers/include/bh1750fvi.h
index 1eaa523ec4..8d0da67ffd 100644
--- a/drivers/include/bh1750fvi.h
+++ b/drivers/include/bh1750fvi.h
@@ -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
-- 
GitLab