mirror of
https://github.com/esphome/esphome.git
synced 2025-07-28 14:16:40 +00:00
[bme68x_bsec2_i2c] Remove arduino dependency (#7815)
This commit is contained in:
parent
d4c4b75eb3
commit
4b5c3e7e2b
@ -16,7 +16,7 @@ CODEOWNERS = ["@neffs", "@kbx81"]
|
|||||||
|
|
||||||
DOMAIN = "bme68x_bsec2"
|
DOMAIN = "bme68x_bsec2"
|
||||||
|
|
||||||
BSEC2_LIBRARY_VERSION = "v1.8.2610"
|
BSEC2_LIBRARY_VERSION = "1.10.2610"
|
||||||
|
|
||||||
CONF_ALGORITHM_OUTPUT = "algorithm_output"
|
CONF_ALGORITHM_OUTPUT = "algorithm_output"
|
||||||
CONF_BME68X_BSEC2_ID = "bme68x_bsec2_id"
|
CONF_BME68X_BSEC2_ID = "bme68x_bsec2_id"
|
||||||
@ -145,7 +145,6 @@ CONFIG_SCHEMA_BASE = (
|
|||||||
): cv.positive_time_period_minutes,
|
): cv.positive_time_period_minutes,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.add_extra(cv.only_with_arduino)
|
|
||||||
.add_extra(validate_bme68x)
|
.add_extra(validate_bme68x)
|
||||||
.add_extra(download_bme68x_blob)
|
.add_extra(download_bme68x_blob)
|
||||||
)
|
)
|
||||||
@ -179,11 +178,13 @@ async def to_code_base(config):
|
|||||||
bsec2_arr = cg.progmem_array(config[CONF_RAW_DATA_ID], rhs)
|
bsec2_arr = cg.progmem_array(config[CONF_RAW_DATA_ID], rhs)
|
||||||
cg.add(var.set_bsec2_configuration(bsec2_arr, len(rhs)))
|
cg.add(var.set_bsec2_configuration(bsec2_arr, len(rhs)))
|
||||||
|
|
||||||
# Although this component does not use SPI, the BSEC2 library requires the SPI library
|
# Although this component does not use SPI, the BSEC2 Arduino library requires the SPI library
|
||||||
cg.add_library("SPI", None)
|
if core.CORE.using_arduino:
|
||||||
|
cg.add_library("SPI", None)
|
||||||
cg.add_library(
|
cg.add_library(
|
||||||
"BME68x Sensor library",
|
"BME68x Sensor library",
|
||||||
"1.1.40407",
|
"1.3.40408",
|
||||||
|
"https://github.com/boschsensortec/Bosch-BME68x-Library",
|
||||||
)
|
)
|
||||||
cg.add_library(
|
cg.add_library(
|
||||||
"BSEC2 Software Library",
|
"BSEC2 Software Library",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "esphome/core/defines.h"
|
#include "esphome/core/defines.h"
|
||||||
|
#include "esphome/core/hal.h"
|
||||||
#include "esphome/core/helpers.h"
|
#include "esphome/core/helpers.h"
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "esphome/core/defines.h"
|
#include "esphome/core/defines.h"
|
||||||
|
#include "esphome/core/hal.h"
|
||||||
#include "esphome/core/helpers.h"
|
#include "esphome/core/helpers.h"
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
|
|
||||||
|
5
tests/components/bme68x_bsec2_i2c/test.esp32-c3-idf.yaml
Normal file
5
tests/components/bme68x_bsec2_i2c/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
substitutions:
|
||||||
|
scl_pin: GPIO6
|
||||||
|
sda_pin: GPIO7
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
5
tests/components/bme68x_bsec2_i2c/test.esp32-idf.yaml
Normal file
5
tests/components/bme68x_bsec2_i2c/test.esp32-idf.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
substitutions:
|
||||||
|
scl_pin: GPIO16
|
||||||
|
sda_pin: GPIO17
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
5
tests/components/bme68x_bsec2_i2c/test.esp32-s2-idf.yaml
Normal file
5
tests/components/bme68x_bsec2_i2c/test.esp32-s2-idf.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
substitutions:
|
||||||
|
scl_pin: GPIO16
|
||||||
|
sda_pin: GPIO17
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
5
tests/components/bme68x_bsec2_i2c/test.esp32-s3-idf.yaml
Normal file
5
tests/components/bme68x_bsec2_i2c/test.esp32-s3-idf.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
substitutions:
|
||||||
|
scl_pin: GPIO16
|
||||||
|
sda_pin: GPIO17
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
5
tests/components/bme68x_bsec2_i2c/test.rp2040-ard.yaml
Normal file
5
tests/components/bme68x_bsec2_i2c/test.rp2040-ard.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
substitutions:
|
||||||
|
scl_pin: GPIO5
|
||||||
|
sda_pin: GPIO4
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
Loading…
x
Reference in New Issue
Block a user