Skip to content

Commit

Permalink
[arduino][seeed] 添加bmm150驱动库 (RT-Thread#1509)
Browse files Browse the repository at this point in the history
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
  • Loading branch information
2 people authored and tfx2001 committed Jan 8, 2023
1 parent f162c64 commit c7fb65a
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions arduino/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ source "$PKGS_DIR/packages/arduino/sensors/Seeed-PAJ7620/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Seeed-VL53L0X/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Seeed-ITG3200/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Seeed-SHT31/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Seeed-BBM150/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Seeed-HMC5883L/Kconfig"

endmenu
30 changes: 30 additions & 0 deletions arduino/sensors/Seeed-BBM150/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

# Kconfig file for package Seeed-BBM150
menuconfig PKG_USING_ARDUINO_SEEED_BBM150
bool "Seeed BBM150: digital compass sensor"
select PKG_USING_RTDUINO
select RTDUINO_USING_WIRE
default n

if PKG_USING_ARDUINO_SEEED_BBM150

config PKG_ARDUINO_SEEED_BBM150_PATH
string
default "/packages/arduino/sensors/Seeed-BBM150"

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

config PKG_USING_ARDUINO_SEEED_BBM150_LATEST_VERSION
bool "latest"
endchoice

config PKG_ARDUINO_SEEED_BBM150_VER
string
default "latest" if PKG_USING_ARDUINO_SEEED_BBM150_LATEST_VERSION

endif

35 changes: 35 additions & 0 deletions arduino/sensors/Seeed-BBM150/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Seeed-BBM150",
"description": "Seeed BBM150 digital compass sensor",
"description_zh": "Seeed BBM150 数字罗盘传感器驱动",
"enable": "PKG_USING_ARDUINO_SEEED_BBM150",
"keywords": [
"Seeed-BBM150",
"Sensors",
"Seeed",
"Arduino",
"BBM150",
"3-axis",
"compass",
"Geomagnetic"
],
"category": "arduino/sensors",
"author": {
"name": "Seeed-Studio",
"email": "techsupport@seeed.cc",
"github": "Seeed-Studio"
},
"license": "MIT",
"repository": "https://github.com/Seeed-Studio/Grove_3_Axis_Compass_V2.0_BMM150",
"icon": "unknown",
"homepage": "https://github.com/Seeed-Studio/Grove_3_Axis_Compass_V2.0_BMM150#readme",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/Seeed-Studio/Grove_3_Axis_Compass_V2.0_BMM150.git",
"filename": "",
"VER_SHA": "master"
}
]
}

0 comments on commit c7fb65a

Please sign in to comment.