Skip to content
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

RTduino-SensorFusion-Shield adapt #1766

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
38 changes: 37 additions & 1 deletion arduino/projects/RTduino-SensorFusion-Shield/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
menuconfig PKG_USING_ARDUINO_RTDUINO_SENSORFUSION_SHIELD
bool "RTduino SensorFusion Shield Driver Library"
select PKG_USING_RTDUINO
select PKG_USING_ARDUINO_ADAFRUIT_BMP280
default n

if PKG_USING_ARDUINO_RTDUINO_SENSORFUSION_SHIELD
Expand All @@ -12,6 +11,43 @@ if PKG_USING_ARDUINO_RTDUINO_SENSORFUSION_SHIELD
bool "Enable RTduino SensorFusion Shield Demos"
default n

if PKG_ARDUINO_RTDUINO_SENSORFUSION_SHIELD_DEMO
config PKG_RTDUINO_SENSORFUSION_SHIELD_BMP280_DEMO
bool "Enable RTduino SensorFusion Shield Demos With BMP280"
select PKG_USING_ARDUINO_ADAFRUIT_BMP280
default n

config PKG_RTDUINO_SENSORFUSION_SHIELD_SHT31_DEMO
bool "Enable RTduino SensorFusion Shield Demos With SHT31"
select PKG_USING_ARDUINO_ADAFRUIT_SHT31
default n

config PKG_RTDUINO_SENSORFUSION_SHIELD_AHT20_DEMO
bool "Enable RTduino SensorFusion Shield Demos With AHT20"
select PKG_USING_ARDUINO_ADAFRUIT_AHTX0
default n

config PKG_RTDUINO_SENSORFUSION_SHIELD_SSD1306_DEMO
bool "Enable RTduino SensorFusion Shield Demos With SSD1306"
select PKG_USING_ARDUINO_ADAFRUIT_SSD1306
default n

config PKG_RTDUINO_SENSORFUSION_SHIELD_ADXL345_DEMO
bool "Enable RTduino SensorFusion Shield Demos With ADXL345"
select PKG_USING_ARDUINO_ADAFRUIT_ADXL345
default n

config PKG_RTDUINO_SENSORFUSION_SHIELD_QMC5883L_DEMO
bool "Enable RTduino SensorFusion Shield Demos With QMC5883L"
select PKG_USING_ARDUINO_QMC5883L
default n

config PKG_RTDUINO_SENSORFUSION_SHIELD_SC7A20_DEMO
bool "Enable RTduino SensorFusion Shield Demos With SC7A20"
select PKG_USING_ARDUINO_SC7A20
default n
endif

config PKG_ARDUINO_RTDUINO_SENSORFUSION_SHIELD_PATH
string
default "/packages/arduino/projects/RTduino-SensorFusion-Shield"
Expand Down
28 changes: 28 additions & 0 deletions arduino/sensors/AT24C256/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

# Kconfig file for package AT24C256
menuconfig PKG_USING_ARDUINO_AT24C256
bool "AT24C256: EEPROM chip, for non-volatile storage data"
select PKG_USING_RTDUINO
default n

if PKG_USING_ARDUINO_AT24C256

config PKG_USING_ARDUINO_AT24C256_PATH
string
default "/packages/arduino/sensors/AT24C256"

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

config PKG_USING_ARDUINO_AT24C256_LATEST_VERSION
bool "latest"
endchoice

config PKG_USING_ARDUINO_AT24C256_VER
string
default "latest" if PKG_USING_ARDUINO_AT24C256_LATEST_VERSION

endif
31 changes: 31 additions & 0 deletions arduino/sensors/AT24C256/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "AT24C256",
"description": "AT24C256: EEPROM chip, for non-volatile storage data",
"description_zh": "AT24C256: EEPROM 芯片,用于非易失性存储数据",
"enable": "PKG_USING_ARDUINO_AT24C256",
"keywords": [
"AT24C256",
"arduino",
"Sensor",
"EEPROM"
],
"category": "arduino/sensors",
"author": {
"name": "kurisaW",
"email": "[email protected]",
"github": "kurisaW"
},
"license": "Apache-2.0",
"repository": "https://github.com/kurisaW/AT24C256",
"icon": "unknown",
"homepage": "https://github.com/kurisaW/AT24C256#readme",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/kurisaW/AT24C256.git",
"filename": "",
"VER_SHA": "main"
}
]
}
3 changes: 3 additions & 0 deletions arduino/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,8 @@ source "$PKGS_DIR/packages/arduino/sensors/Seeed-LTC2941/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Seeed-LDC1612/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/CapacitiveSensor/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Jarzebski-MPU6050/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/SC7A20/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/QMC5883L/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/AT24C256/Kconfig"

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

# Kconfig file for package QMC5883L
menuconfig PKG_USING_ARDUINO_QMC5883L
bool "QMC5883L: three-axis magnetometer sensor for electronic compass applications"
select PKG_USING_RTDUINO
default n

if PKG_USING_ARDUINO_QMC5883L

config PKG_USING_ARDUINO_QMC5883L_PATH
string
default "/packages/arduino/sensors/QMC5883L"

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

config PKG_USING_ARDUINO_QMC5883L_LATEST_VERSION
bool "latest"
endchoice

config PKG_USING_ARDUINO_QMC5883L_VER
string
default "latest" if PKG_USING_ARDUINO_QMC5883L_LATEST_VERSION

endif
32 changes: 32 additions & 0 deletions arduino/sensors/QMC5883L/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "QMC5883L",
"description": "QMC5883L: Three-axis Magnetometer Sensor for electronic compass applications",
"description_zh": "QMC5883L: 三轴磁强计传感器,用于电子罗盘应用",
"enable": "PKG_USING_ARDUINO_QMC5883L",
"keywords": [
"QMC5883L",
"arduino",
"Sensor",
"three-axis",
"Magnetometer"
],
"category": "arduino/sensors",
"author": {
"name": "kurisaW",
"email": "[email protected]",
"github": "kurisaW"
},
"license": "Unknown",
"repository": "https://github.com/kurisaW/QMC5883L",
"icon": "unknown",
"homepage": "https://github.com/kurisaW/QMC5883L#readme",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/kurisaW/QMC5883L.git",
"filename": "",
"VER_SHA": "main"
}
]
}
28 changes: 28 additions & 0 deletions arduino/sensors/SC7A20/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

# Kconfig file for package SC7A20
menuconfig PKG_USING_ARDUINO_SC7A20
bool "SC7A20: Three-axis accelerometer sensor"
select PKG_USING_RTDUINO
default n

if PKG_USING_ARDUINO_SC7A20

config PKG_USING_ARDUINO_SC7A20_PATH
string
default "/packages/arduino/sensors/SC7A20"

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

config PKG_USING_ARDUINO_SC7A20_LATEST_VERSION
bool "latest"
endchoice

config PKG_USING_ARDUINO_SC7A20_VER
string
default "latest" if PKG_USING_ARDUINO_SC7A20_LATEST_VERSION

endif
32 changes: 32 additions & 0 deletions arduino/sensors/SC7A20/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "SC7A20",
"description": "SC7A20: Three-axis accelerometer sensor",
"description_zh": "SC7A20: 三轴加速度计传感器",
"enable": "PKG_USING_ARDUINO_SC7A20",
"keywords": [
"SC7A20",
"arduino",
"Sensor",
"three-axis",
"accelerometer"
],
"category": "arduino/sensors",
"author": {
"name": "kurisaW",
"email": "[email protected]",
"github": "kurisaW"
},
"license": "Apache-2.0",
"repository": "https://github.com/kurisaW/SC7A20",
"icon": "unknown",
"homepage": "https://github.com/kurisaW/SC7A20#readme",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/kurisaW/SC7A20.git",
"filename": "",
"VER_SHA": "main"
}
]
}
Loading