From 4886102b44fe4be7886cd5d42e839a459c45f9ff Mon Sep 17 00:00:00 2001 From: umam-123 Date: Sat, 14 Feb 2026 00:32:36 +0530 Subject: [PATCH 1/3] Create package.json add scd4x package.json --- peripherals/sensors/scd4x/package.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 peripherals/sensors/scd4x/package.json 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" } + ] +} From 0e46b7ff3c330df5b8b2f789c0e4085308bfc6b7 Mon Sep 17 00:00:00 2001 From: umam-123 Date: Sat, 14 Feb 2026 00:33:33 +0530 Subject: [PATCH 2/3] Create Kconfig add scd4x Kconfig --- peripherals/sensors/scd4x/Kconfig | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 peripherals/sensors/scd4x/Kconfig 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 From 4ad4684372463cdb3de6bfa9a02236f782233449 Mon Sep 17 00:00:00 2001 From: umam-123 Date: Sat, 14 Feb 2026 00:35:13 +0530 Subject: [PATCH 3/3] Update Kconfig source scd4x Kconfig --- peripherals/sensors/Kconfig | 1 + 1 file changed, 1 insertion(+) 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