Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions peripherals/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
41 changes: 41 additions & 0 deletions peripherals/sensors/scd4x/Kconfig
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions peripherals/sensors/scd4x/package.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}