mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/sltb001a: enable CCS811 sensor
This commit is contained in:
parent
18b0bdaa81
commit
e4217f1b0f
@ -1,6 +1,7 @@
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += saul_gpio
|
||||
USEMODULE += bmp280_i2c
|
||||
USEMODULE += ccs811
|
||||
USEMODULE += saul_gpio
|
||||
USEMODULE += si7021
|
||||
endif
|
||||
|
||||
|
@ -37,7 +37,7 @@ void board_init(void)
|
||||
board_common_init();
|
||||
|
||||
#ifdef MODULE_SILABS_PIC
|
||||
#if CCS811_ENABLED
|
||||
#ifdef MODULE_CCS811
|
||||
/* enable the CCS811 air quality/gas sensor */
|
||||
pic_write(CCS811_PIC_ADDR, (1 << CCS811_PIC_EN_BIT) | (1 << CCS811_PIC_WAKE_BIT));
|
||||
#endif
|
||||
|
@ -94,13 +94,13 @@ extern "C" {
|
||||
* Connection to the on-board air quality/gas sensor (CCS811).
|
||||
* @{
|
||||
*/
|
||||
#ifndef CCS811_ENABLED
|
||||
#define CCS811_ENABLED (0)
|
||||
#endif
|
||||
#define CCS811_I2C I2C_DEV(0)
|
||||
#define CCS811_PIC_ADDR (0x03)
|
||||
#define CCS811_PIC_EN_BIT (0x00)
|
||||
#define CCS811_PIC_WAKE_BIT (0x01)
|
||||
#define CCS811_I2C I2C_DEV(0)
|
||||
|
||||
#define CCS811_PIC_ADDR (0x03)
|
||||
#define CCS811_PIC_EN_BIT (0x00)
|
||||
#define CCS811_PIC_WAKE_BIT (0x01)
|
||||
|
||||
#define CCS811_PARAM_I2C_DEV CCS811_I2C
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user