Skip to content

Commit 761ff4a

Browse files
authored
add package for Melexis MLX90384 (#1935)
* add Melexis MLX90396 package * Update package.json * Update package.json * add a package for Melexis MLX90384
1 parent 5a99154 commit 761ff4a

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

peripherals/sensors/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ source "$PKGS_DIR/packages/peripherals/sensors/pmsxx/Kconfig"
4040
source "$PKGS_DIR/packages/peripherals/sensors/rt3020/Kconfig"
4141
source "$PKGS_DIR/packages/peripherals/sensors/mlx90632/Kconfig"
4242
source "$PKGS_DIR/packages/peripherals/sensors/mlx90382/Kconfig"
43+
source "$PKGS_DIR/packages/peripherals/sensors/mlx90384/Kconfig"
4344
source "$PKGS_DIR/packages/peripherals/sensors/mlx90393/Kconfig"
4445
source "$PKGS_DIR/packages/peripherals/sensors/mlx90392/Kconfig"
4546
source "$PKGS_DIR/packages/peripherals/sensors/mlx90394/Kconfig"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Kconfig file for package mlx90384
2+
menuconfig PKG_USING_MLX90384
3+
bool "a mlx90384 package for rt-thread."
4+
default n
5+
6+
if PKG_USING_MLX90384
7+
8+
config PKG_MLX90384_USING_SENSOR_V1
9+
bool "Enable sensor divce framework"
10+
select RT_USING_SENSOR
11+
default n
12+
13+
config PKG_MLX90384_PATH
14+
string
15+
default "/packages/peripherals/sensors/mlx90384"
16+
17+
choice
18+
prompt "Version"
19+
default PKG_USING_MLX90384_LATEST_VERSION
20+
help
21+
Select the package version
22+
23+
config PKG_USING_MLX90384_V100
24+
bool "v1.0.0"
25+
26+
config PKG_USING_MLX90384_LATEST_VERSION
27+
bool "latest"
28+
endchoice
29+
30+
config PKG_MLX90384_VER
31+
string
32+
default "v1.0.0" if PKG_USING_MLX90384_V100
33+
default "latest" if PKG_USING_MLX90384_LATEST_VERSION
34+
35+
config PKG_USING_MLX90384_SAMPLE
36+
bool "Enable mlx90384 sample"
37+
default n
38+
39+
endif
40+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "mlx90384",
3+
"description": "The MLX90384 is a high resolution(18 bits) magnetic encoder(Arcminaxis)",
4+
"description_zh": "MLX90384 是来自迈来芯公司的一颗高分辨率(18 Bits)磁编码器",
5+
"enable": "PKG_USING_MLX90384",
6+
"keywords": [
7+
"mlx90384"
8+
],
9+
"category": "peripherals/sensors",
10+
"author": {
11+
"name": "lgnq",
12+
"email": "[email protected]",
13+
"github": "lgnq"
14+
},
15+
"license": "Apache-2.0",
16+
"repository": "https://github.com/lgnq/mlx90384",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/lgnq/mlx90384",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/lgnq/mlx90384.git",
24+
"filename": "mlx90384.zip",
25+
"VER_SHA": "main"
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)