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.
This commit is contained in:
MrKevinWeiss 2019-01-03 09:08:31 +01:00
parent 90b5865692
commit b870dbb3b9

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