Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
add Melexis MLX90396 package
  • Loading branch information
lgnq committed Oct 25, 2025
commit abf01123f76af2868d06a9fde252374408d61354
1 change: 1 addition & 0 deletions peripherals/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ source "$PKGS_DIR/packages/peripherals/sensors/mlx90382/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/mlx90393/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/mlx90392/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/mlx90394/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/mlx90396/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/mlx90397/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/ms5611/Kconfig"
source "$PKGS_DIR/packages/peripherals/sensors/max31865/Kconfig"
Expand Down
41 changes: 41 additions & 0 deletions peripherals/sensors/mlx90396/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

# Kconfig file for package mlx90396
menuconfig PKG_USING_MLX90396
bool "MLX90396: 3D magnetometer sensor"
default n

if PKG_USING_MLX90396

config PKG_MLX90396_PATH
string
default "/packages/peripherals/sensors/mlx90396"

config PKG_MLX90396_USING_SENSOR_V1
bool "Enable sensor_v1 device framework"
select RT_USING_SENSOR
default n

config PKG_USING_MLX90396_SAMPLE
bool "Enable MLX90396 Sample"
default n

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

config PKG_USING_MLX90396_V100
bool "v1.0.0"

config PKG_USING_MLX90396_LATEST_VERSION
bool "latest"
endchoice

config PKG_MLX90396_VER
string
default "v1.0.0" if PKG_USING_MLX90396_V100
default "latest" if PKG_USING_MLX90396_LATEST_VERSION

endif

28 changes: 28 additions & 0 deletions peripherals/sensors/mlx90396/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "mlx90396",
"description": "The MLX90396 is the newest addition to the Melexis position sensing portfolio, bringing the highest flexibility in the portfolio’s smallest assembly. Complementing this, the magnetic fi eld sensor is designed for micropower applications, with programmable duty cycles in the range of 0.1% to 100%.",
"description_zh": "MLX90396 是来自迈来芯公司的一颗低功耗的3D磁位置传感器",
"enable": "PKG_USING_MLX90396",
"keywords": [
"mlx90396"
],
"category": "peripherals/sensors",
"author": {
"name": "lgnq",
"email": "[email protected]",
"github": "lgnq"
},
"license": "Apache-2.0",
"repository": "https://github.com/lgnq/mlx90396",
"icon": "unknown",
"homepage": "https://github.com/lgnq/mlx90396`",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/lgnq/mlx90396.git",
"filename": "mlx90396.zip",
"VER_SHA": "main"
}
]
}
Loading