Skip to content

Commit b3e81cd

Browse files
authored
add max31855 sensor (#1873)
1 parent e4c83ae commit b3e81cd

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

peripherals/sensors/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ source "$PKGS_DIR/packages/peripherals/sensors/shtc1/Kconfig"
3232
source "$PKGS_DIR/packages/peripherals/sensors/bmi088/Kconfig"
3333
source "$PKGS_DIR/packages/peripherals/sensors/hmc5883/Kconfig"
3434
source "$PKGS_DIR/packages/peripherals/sensors/max6675/Kconfig"
35+
source "$PKGS_DIR/packages/peripherals/sensors/max31855/Kconfig"
3536
source "$PKGS_DIR/packages/peripherals/sensors/tmp1075/Kconfig"
3637
source "$PKGS_DIR/packages/peripherals/sensors/sr04/Kconfig"
3738
source "$PKGS_DIR/packages/peripherals/sensors/ccs811/Kconfig"

peripherals/sensors/max31855/Kconfig

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
# Kconfig file for package max31855
3+
menuconfig PKG_USING_MAX31855
4+
bool "max31855: a package of digital temperature sensor max31855."
5+
default n
6+
7+
if PKG_USING_MAX31855
8+
9+
config PKG_MAX31855_USING_SENSOR_V1
10+
bool "Enable sensor_v1 divce framework"
11+
select RT_USING_SENSOR
12+
default n
13+
14+
config PKG_MAX31855_PATH
15+
string
16+
default "/packages/peripherals/sensors/max31855"
17+
18+
choice
19+
prompt "Version"
20+
default PKG_USING_MAX31855_LATEST_VERSION
21+
help
22+
Select the package version
23+
24+
config PKG_USING_MAX31855_V100
25+
bool "v1.0.0"
26+
27+
config PKG_USING_MAX31855_LATEST_VERSION
28+
bool "latest"
29+
endchoice
30+
31+
config PKG_MAX31855_VER
32+
string
33+
default "v1.0.0" if PKG_USING_MAX31855_V100
34+
default "latest" if PKG_USING_MAX31855_LATEST_VERSION
35+
36+
endif
37+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "max31855",
3+
"description": "max31855: a package of digital temperature sensor max31855",
4+
"description_zh": "数字温度传感器 max31855 的软件包",
5+
"enable": "PKG_USING_MAX31855",
6+
"keywords": [
7+
"max31855",
8+
"sensor"
9+
],
10+
"category": "peripherals/sensors",
11+
"author": {
12+
"name": "wangwang105",
13+
"email": "[email protected]",
14+
"github": "wangwang105"
15+
},
16+
"license": "MIT",
17+
"repository": "https://github.com/wangwang105/rtt-max31855.git",
18+
"icon": "https://www.rt-thread.org/qa/template/fxiaomi/style/image/logo.png",
19+
"homepage": "https://github.com/wangwang105/rtt-max31855.git#readme",
20+
"doc": "unknown",
21+
"site": [
22+
{
23+
"version": "v1.0.0",
24+
"URL": "https://github.com/wangwang105/rtt-max31855/archive/refs/tags/v1.0.0.zip",
25+
"filename": "rtt—max31855-1.0.0.zip"
26+
},
27+
{
28+
"version": "latest",
29+
"URL": "https://github.com/wangwang105/rtt-max31855.git",
30+
"filename": "rtt-max31855-latest.zip",
31+
"VER_SHA": "main"
32+
}
33+
]
34+
}

0 commit comments

Comments
 (0)