Skip to content

Commit

Permalink
[arduino][adafruit]增加PN532驱动库 (#1422)
Browse files Browse the repository at this point in the history
* [arduino][adafruit]增加PN532驱动库

* Update Kconfig

* Update package.json

Co-authored-by: Man, Jianting (Meco) <[email protected]>
  • Loading branch information
Harrypotter-zhs and mysterywolf authored Oct 1, 2022
1 parent 41ab683 commit 16239dc
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
32 changes: 32 additions & 0 deletions arduino/signalio/Adafruit-PN532/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

# Kconfig file for package Adafruit-PN532
menuconfig PKG_USING_ARDUINO_ADAFRUIT_PN532
bool "Adafruit PN532: NFC/RFID driver"
select PKG_USING_RTDUINO
select RTDUINO_USING_WIRE
select RTDUINO_USING_SPI
select PKG_USING_ARDUINO_ADAFRUIT_BUSIO
default n

if PKG_USING_ARDUINO_ADAFRUIT_PN532

config PKG_ARDUINO_ADAFRUIT_PN532_PATH
string
default "/packages/arduino/signalio/Adafruit-PN532"

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

config PKG_USING_ARDUINO_ADAFRUIT_PN532_LATEST_VERSION
bool "latest"
endchoice

config PKG_ARDUINO_ADAFRUIT_PN532_VER
string
default "latest" if PKG_USING_ARDUINO_ADAFRUIT_PN532_LATEST_VERSION

endif

36 changes: 36 additions & 0 deletions arduino/signalio/Adafruit-PN532/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "Adafruit-PN532",
"description": "Adafruit PN532 NFC/RFID driver",
"description_zh": "Adafruit PN532 NFC/RFID驱动",
"enable": "PKG_USING_ARDUINO_ADAFRUIT_PN532",
"keywords": [
"Adafruit-PN532",
"PN532",
"NFC/RFID",
"I2C",
"SPI",
"arduino",
"Adafruit",
"Signal",
"Input/Output"
],
"category": "arduino/signalio",
"author": {
"name": "adafruit",
"email": "[email protected]",
"github": "adafruit"
},
"license": "BSD-3-Clause",
"repository": "https://github.com/adafruit/Adafruit-PN532",
"icon": "unknown",
"homepage": "https://github.com/adafruit/Adafruit-PN532#readme",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/adafruit/Adafruit-PN532.git",
"filename": "",
"VER_SHA": "master"
}
]
}
1 change: 1 addition & 0 deletions arduino/signalio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ source "$PKGS_DIR/packages/arduino/signalio/Adafruit-AW9523/Kconfig"
source "$PKGS_DIR/packages/arduino/signalio/Adafruit-MCP3008/Kconfig"
source "$PKGS_DIR/packages/arduino/signalio/Adafruit-MCP4725/Kconfig"
source "$PKGS_DIR/packages/arduino/signalio/Adafruit-BD3491FS/Kconfig"
source "$PKGS_DIR/packages/arduino/signalio/Adafruit-PN532/Kconfig"

endmenu

0 comments on commit 16239dc

Please sign in to comment.