drivers/include/opt3001.h : Compile Configs
This commit is contained in:
parent
4744401bb5
commit
f39b320b5d
@ -49,14 +49,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief OPT3001 Default Address
|
|
||||||
*
|
|
||||||
* If set to 0x44 the corresponding ADDR PIN is GND.
|
|
||||||
*/
|
|
||||||
#ifndef OPT3001_I2C_ADDRESS
|
|
||||||
#define OPT3001_I2C_ADDRESS (0x45)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Conversion time
|
* @name Conversion time
|
||||||
@ -66,6 +58,21 @@ extern "C" {
|
|||||||
#define OPT3001_CONVERSION_TIME_800_MS (0x0800) /**< Conversion time of 800ms */
|
#define OPT3001_CONVERSION_TIME_800_MS (0x0800) /**< Conversion time of 800ms */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @defgroup drivers_opt3001_config OPT3001 Ambient Light Sensor driver compile configuration
|
||||||
|
* @ingroup config_drivers_sensors
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* @brief OPT3001 Default Address
|
||||||
|
*
|
||||||
|
* If set to 0x45 the ADDR PIN should be connected to VDD.
|
||||||
|
* For more information on SerialBus Address, refer section 7.3.4.1 in datasheet.
|
||||||
|
*/
|
||||||
|
#ifndef OPT3001_I2C_ADDRESS
|
||||||
|
#define OPT3001_I2C_ADDRESS (0x45)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief OPT3001 Default conversion time
|
* @brief OPT3001 Default conversion time
|
||||||
*
|
*
|
||||||
@ -75,6 +82,7 @@ extern "C" {
|
|||||||
#ifndef OPT3001_CONVERSION_TIME
|
#ifndef OPT3001_CONVERSION_TIME
|
||||||
#define OPT3001_CONVERSION_TIME OPT3001_CONVERSION_TIME_800_MS
|
#define OPT3001_CONVERSION_TIME OPT3001_CONVERSION_TIME_800_MS
|
||||||
#endif
|
#endif
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Parameters needed for device initialization
|
* @brief Parameters needed for device initialization
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user