Installation
Last updated on: February 14, 2022
Using with Zephyr OS
In order for the devices to be part of the Icarus device tree, you need to use the following overlay in your project:
&i2c2 {bme280@76 {compatible = "bosch,bme280";reg = <0x76>;label = "BME280";};ccs811@5a {compatible = "ams,ccs811";reg = <0x5a>;label = "CCS811";};si7060@32 {compatible = "silabs,si7060";reg = <0x32>;label = "SI7060";};opt3001@44 {compatible = "ti,opt3001";reg = <0x44>;label = "OPT3001";};};
Lastly, make sure that the following are defined in you prj.conf
:
CONFIG_I2C=yCONFIG_SPI=yCONFIG_SENSOR=yCONFIG_BME280=yCONFIG_CCS811=yCONFIG_CCS811_GPIO_WAKEUP=yCONFIG_SI7060=yCONFIG_OPT3001=yCONFIG_I2C_2=yCONFIG_CCS811_GPIO_DEV_NAME="GPIO_0"CONFIG_CCS811_GPIO_WAKEUP_PIN_NUM=30