From ff6f86f836e1acde84bb86eb24c85fb2e2f13f31 Mon Sep 17 00:00:00 2001 From: Yuqiang Wang Date: Sun, 18 Aug 2024 13:23:25 +0800 Subject: [PATCH 1/2] RTduino-SensorFusion-Shield adapt --- .../RTduino-SensorFusion-Shield/Kconfig | 38 ++++++++++++++++++- arduino/sensors/Kconfig | 2 + arduino/sensors/QMC5883L/Kconfig | 28 ++++++++++++++ arduino/sensors/QMC5883L/package.json | 32 ++++++++++++++++ arduino/sensors/SC7A20/Kconfig | 28 ++++++++++++++ arduino/sensors/SC7A20/package.json | 32 ++++++++++++++++ 6 files changed, 159 insertions(+), 1 deletion(-) create mode 100644 arduino/sensors/QMC5883L/Kconfig create mode 100644 arduino/sensors/QMC5883L/package.json create mode 100644 arduino/sensors/SC7A20/Kconfig create mode 100644 arduino/sensors/SC7A20/package.json diff --git a/arduino/projects/RTduino-SensorFusion-Shield/Kconfig b/arduino/projects/RTduino-SensorFusion-Shield/Kconfig index 8ecc719c64..2941b4e495 100644 --- a/arduino/projects/RTduino-SensorFusion-Shield/Kconfig +++ b/arduino/projects/RTduino-SensorFusion-Shield/Kconfig @@ -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 @@ -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" diff --git a/arduino/sensors/Kconfig b/arduino/sensors/Kconfig index 0f5b6d7298..1d91bf987e 100644 --- a/arduino/sensors/Kconfig +++ b/arduino/sensors/Kconfig @@ -136,5 +136,7 @@ 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" endmenu diff --git a/arduino/sensors/QMC5883L/Kconfig b/arduino/sensors/QMC5883L/Kconfig new file mode 100644 index 0000000000..692f17e3b5 --- /dev/null +++ b/arduino/sensors/QMC5883L/Kconfig @@ -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 diff --git a/arduino/sensors/QMC5883L/package.json b/arduino/sensors/QMC5883L/package.json new file mode 100644 index 0000000000..b63bade15d --- /dev/null +++ b/arduino/sensors/QMC5883L/package.json @@ -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": "2053731441@qq.com", + "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" + } + ] +} \ No newline at end of file diff --git a/arduino/sensors/SC7A20/Kconfig b/arduino/sensors/SC7A20/Kconfig new file mode 100644 index 0000000000..5e1552ac82 --- /dev/null +++ b/arduino/sensors/SC7A20/Kconfig @@ -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 diff --git a/arduino/sensors/SC7A20/package.json b/arduino/sensors/SC7A20/package.json new file mode 100644 index 0000000000..dde7f8975b --- /dev/null +++ b/arduino/sensors/SC7A20/package.json @@ -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": "2053731441@qq.com", + "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" + } + ] +} \ No newline at end of file From 41bd4fa6d9f4aa9d856ad176d98f5213bc5c9e8c Mon Sep 17 00:00:00 2001 From: Yuqiang Wang Date: Sun, 18 Aug 2024 17:58:35 +0800 Subject: [PATCH 2/2] commit second --- arduino/sensors/AT24C256/Kconfig | 28 ++++++++++++++++++++++++ arduino/sensors/AT24C256/package.json | 31 +++++++++++++++++++++++++++ arduino/sensors/Kconfig | 1 + 3 files changed, 60 insertions(+) create mode 100644 arduino/sensors/AT24C256/Kconfig create mode 100644 arduino/sensors/AT24C256/package.json diff --git a/arduino/sensors/AT24C256/Kconfig b/arduino/sensors/AT24C256/Kconfig new file mode 100644 index 0000000000..103de0d5b1 --- /dev/null +++ b/arduino/sensors/AT24C256/Kconfig @@ -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 diff --git a/arduino/sensors/AT24C256/package.json b/arduino/sensors/AT24C256/package.json new file mode 100644 index 0000000000..5e9aa97c69 --- /dev/null +++ b/arduino/sensors/AT24C256/package.json @@ -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": "2053731441@qq.com", + "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" + } + ] +} \ No newline at end of file diff --git a/arduino/sensors/Kconfig b/arduino/sensors/Kconfig index 1d91bf987e..a4891b75c6 100644 --- a/arduino/sensors/Kconfig +++ b/arduino/sensors/Kconfig @@ -138,5 +138,6 @@ 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