diff --git a/peripherals/sensors/Kconfig b/peripherals/sensors/Kconfig index a8e7d6c964..a5d45330c4 100755 --- a/peripherals/sensors/Kconfig +++ b/peripherals/sensors/Kconfig @@ -73,5 +73,6 @@ source "$PKGS_DIR/packages/peripherals/sensors/sths34pf80/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/p3t1755/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/qmi8658/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/icm20948/Kconfig" +source "$PKGS_DIR/packages/peripherals/sensors/scd4x/Kconfig" endmenu diff --git a/peripherals/sensors/scd4x/Kconfig b/peripherals/sensors/scd4x/Kconfig new file mode 100644 index 0000000000..f8c9a992a4 --- /dev/null +++ b/peripherals/sensors/scd4x/Kconfig @@ -0,0 +1,41 @@ +# Kconfig file for package scd4x +menuconfig PKG_USING_SCD4X + bool "SCD4x: Sensirion CO2, Temperature and Humidity Sensor" + default n + select RT_USING_I2C + +if PKG_USING_SCD4X + config PKG_SCD4X_PATH + string + default "/packages/peripherals/sensors/scd4x" + + config PKG_SCD4X_I2C_BUS + string "I2C bus name" + default "i2c1" + + config PKG_SCD4X_ASC_ENABLE + bool "Enable Automatic Self Calibration (ASC)" + default y + + config PKG_USING_SCD4X_SAMPLE + bool "Enable SCD4x sample application" + default n + + config PKG_USING_SCD4X_SHELL + bool "Enable SCD4x FinSH shell commands" + default y + + choice + prompt "Version" + default PKG_USING_SCD4X_LATEST_VERSION + config PKG_USING_SCD4X_V100 + bool "v1.0.0" + config PKG_USING_SCD4X_LATEST_VERSION + bool "latest" + endchoice + + config PKG_SCD4X_VER + string + default "v1.0.0" if PKG_USING_SCD4X_V100 + default "latest" if PKG_USING_SCD4X_LATEST_VERSION +endif diff --git a/peripherals/sensors/scd4x/package.json b/peripherals/sensors/scd4x/package.json new file mode 100644 index 0000000000..26c54c4711 --- /dev/null +++ b/peripherals/sensors/scd4x/package.json @@ -0,0 +1,17 @@ +{ + "name": "scd4x", + "description": "Sensirion SCD4x (CO2/Temp/Humi) sensor driver", + "description_zh": "Sensirion SCD4x (CO2/温湿度) 传感器驱动", + "enable": "PKG_USING_SCD4X", + "keywords": ["scd4x", "co2", "sensirion", "sensor"], + "category": "peripherals/sensors", + "author": { "name": "Uma", "email": "umamaheswari.acca@gmail.com", "github": "umam-123" }, + "license": "Apache-2.0", + "repository": "https://github.com/umam-123/scd4x", + "icon": "unknown", + "homepage": "https://github.com/umam-123/scd4x#readme", + "site": [ + { "version": "v1.0.0", "URL": "https://github.com/umam-123/scd4x/archive/refs/tags/v1.0.0.zip", "filename": "scd4x-v1.0.0.zip", "VER_SHA": "master" }, + { "version": "latest", "URL": "https://github.com/umam-123/scd4x/archive/refs/heads/master.zip", "filename": "scd4x-master.zip", "VER_SHA": "master" } + ] +}