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

[arduino][adafruit] 添加pct2075驱动库 #1417

Merged
merged 1 commit into from
Sep 30, 2022
Merged
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
[arduino][adafruit] 添加pct2075驱动库
  • Loading branch information
Z8MAN8 committed Sep 30, 2022
commit b02f333dc7da568243531888dd415ba3a8a597de
31 changes: 31 additions & 0 deletions arduino/sensors/Adafruit-PCT2075/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

# Kconfig file for package Adafruit-PCT2075
menuconfig PKG_USING_ARDUINO_ADAFRUIT_PCT2075
bool "Adafruit PCT2075: temperature sensor"
select PKG_USING_RTDUINO
select RTDUINO_USING_WIRE
select PKG_USING_ARDUINO_ADAFRUIT_BUSIO
default n

if PKG_USING_ARDUINO_ADAFRUIT_PCT2075

config PKG_ARDUINO_ADAFRUIT_PCT2075_PATH
string
default "/packages/arduino/sensors/Adafruit-PCT2075"

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

config PKG_USING_ARDUINO_ADAFRUIT_PCT2075_LATEST_VERSION
bool "latest"
endchoice

config PKG_ARDUINO_ADAFRUIT_PCT2075_VER
string
default "latest" if PKG_USING_ARDUINO_ADAFRUIT_PCT2075_LATEST_VERSION

endif

33 changes: 33 additions & 0 deletions arduino/sensors/Adafruit-PCT2075/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "Adafruit-PCT2075",
"description": "Adafruit PCT2075 temperature sensor",
"description_zh": "Adafruit PCT2075温度传感器驱动",
"enable": "PKG_USING_ARDUINO_ADAFRUIT_PCT2075",
"keywords": [
"Adafruit-PCT2075",
"Sensors",
"Adafruit",
"Arduino",
"PCT2075",
"temperature"
],
"category": "arduino/sensors",
"author": {
"name": "adafruit",
"email": "info@adafruit.com",
"github": "adafruit"
},
"license": "BSD-3-Clause",
"repository": "https://github.com/adafruit/Adafruit_PCT2075",
"icon": "unknown",
"homepage": "https://github.com/adafruit/Adafruit_PCT2075#readme",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/adafruit/Adafruit_PCT2075.git",
"filename": "",
"VER_SHA": "master"
}
]
}
1 change: 1 addition & 0 deletions arduino/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ source "$PKGS_DIR/packages/arduino/sensors/Adafruit-MPL3115A2/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Adafruit-MPR121/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Adafruit-MPRLS/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Adafruit-MPU6050/Kconfig"
source "$PKGS_DIR/packages/arduino/sensors/Adafruit-PCT2075/Kconfig"

endmenu