Skip to content

add max31855 sensor #1873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 24, 2025
Merged
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 @@ -32,6 +32,7 @@ source "$PKGS_DIR/packages/peripherals/sensors/shtc1/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/bmi088/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/hmc5883/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/max6675/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/max31855/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/tmp1075/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/sr04/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/ccs811/Kconfig"
Expand Down
37 changes: 37 additions & 0 deletions peripherals/sensors/max31855/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

# Kconfig file for package max31855
menuconfig PKG_USING_MAX31855
bool "max31855: a package of digital temperature sensor max31855."
default n

if PKG_USING_MAX31855

config PKG_MAX31855_USING_SENSOR_V1
bool "Enable sensor_v1 divce framework"
select RT_USING_SENSOR
default n

config PKG_MAX31855_PATH
string
default "/packages/peripherals/sensors/max31855"

choice
prompt "Version"
default PKG_USING_MAX31855_LATEST_VERSION
help
Select the package version

config PKG_USING_MAX31855_V100
bool "v1.0.0"

config PKG_USING_MAX31855_LATEST_VERSION
bool "latest"
endchoice

config PKG_MAX31855_VER
string
default "v1.0.0" if PKG_USING_MAX31855_V100
default "latest" if PKG_USING_MAX31855_LATEST_VERSION

endif

34 changes: 34 additions & 0 deletions peripherals/sensors/max31855/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "max31855",
"description": "max31855: a package of digital temperature sensor max31855",
"description_zh": "数字温度传感器 max31855 的软件包",
"enable": "PKG_USING_MAX31855",
"keywords": [
"max31855",
"sensor"
],
"category": "peripherals/sensors",
"author": {
"name": "wangwang105",
"email": "[email protected]",
"github": "wangwang105"
},
"license": "MIT",
"repository": "https://github.com/wangwang105/rtt-max31855.git",
"icon": "https://www.rt-thread.org/qa/template/fxiaomi/style/image/logo.png",
"homepage": "https://github.com/wangwang105/rtt-max31855.git#readme",
"doc": "unknown",
"site": [
{
"version": "v1.0.0",
"URL": "https://github.com/wangwang105/rtt-max31855/archive/refs/tags/v1.0.0.zip",
"filename": "rtt—max31855-1.0.0.zip"
},
{
"version": "latest",
"URL": "https://github.com/wangwang105/rtt-max31855.git",
"filename": "rtt-max31855-latest.zip",
"VER_SHA": "main"
}
]
}
Loading