mirror of
https://github.com/m5stack/M5Unit-NFC.git
synced 2026-05-20 11:48:34 -07:00
Rename CapHacker/HackerCap to CapCC1101 and fixes README
This commit is contained in:
@@ -228,7 +228,7 @@ jobs:
|
||||
board: m5stack_core
|
||||
build-properties: "-DUSING_UNIT_NFC"
|
||||
|
||||
# CapHacker on Cardputer
|
||||
# CapCC1101 on Cardputer
|
||||
- sketch: Detect
|
||||
nfc: NFCA
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -236,7 +236,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: Detect
|
||||
nfc: NFCB
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -244,7 +244,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: Detect
|
||||
nfc: NFCF
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -252,7 +252,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: Detect
|
||||
nfc: NFCV
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -260,8 +260,8 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
# CapHacker NFCA non-Detect sketches
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
# CapCC1101 NFCA non-Detect sketches
|
||||
- sketch: Dump
|
||||
nfc: NFCA
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -269,7 +269,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: ReadWrite
|
||||
nfc: NFCA
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -277,7 +277,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: ValueBlock
|
||||
nfc: NFCA
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -285,7 +285,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: NDEF
|
||||
nfc: NFCA
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -293,7 +293,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: Emulation
|
||||
nfc: NFCA
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -301,8 +301,8 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
# CapHacker NFCB non-Detect sketches
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
# CapCC1101 NFCB non-Detect sketches
|
||||
- sketch: JapanIDCard
|
||||
nfc: NFCB
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -310,8 +310,8 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
# CapHacker NFCF non-Detect sketches
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
# CapCC1101 NFCF non-Detect sketches
|
||||
- sketch: Dump
|
||||
nfc: NFCF
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -319,7 +319,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: NDEF
|
||||
nfc: NFCF
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -327,7 +327,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: Subtract
|
||||
nfc: NFCF
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -335,7 +335,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: ReadWriteMAC
|
||||
nfc: NFCF
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -343,7 +343,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: JapanTransportationICCard
|
||||
nfc: NFCF
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -351,7 +351,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: Emulation
|
||||
nfc: NFCF
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -359,8 +359,8 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
# CapHacker NFCV non-Detect sketches
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
# CapCC1101 NFCV non-Detect sketches
|
||||
- sketch: Dump
|
||||
nfc: NFCV
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -368,7 +368,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
- sketch: NDEF
|
||||
nfc: NFCV
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -376,7 +376,7 @@ jobs:
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
@@ -239,11 +239,11 @@ jobs:
|
||||
board: m5stack_core
|
||||
build-properties: "-DUSING_UNIT_NFC"
|
||||
|
||||
# CapHacker on Cardputer
|
||||
# CapCC1101 on Cardputer
|
||||
- sketch: Detect
|
||||
nfc: NFCA
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -251,7 +251,7 @@ jobs:
|
||||
- sketch: Detect
|
||||
nfc: NFCB
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -259,7 +259,7 @@ jobs:
|
||||
- sketch: Detect
|
||||
nfc: NFCF
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -267,16 +267,16 @@ jobs:
|
||||
- sketch: Detect
|
||||
nfc: NFCV
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 3.2.5
|
||||
# CapHacker NFCA non-Detect sketches
|
||||
# CapCC1101 NFCA non-Detect sketches
|
||||
- sketch: Dump
|
||||
nfc: NFCA
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -284,7 +284,7 @@ jobs:
|
||||
- sketch: ReadWrite
|
||||
nfc: NFCA
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -292,7 +292,7 @@ jobs:
|
||||
- sketch: ValueBlock
|
||||
nfc: NFCA
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -300,7 +300,7 @@ jobs:
|
||||
- sketch: NDEF
|
||||
nfc: NFCA
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -308,25 +308,25 @@ jobs:
|
||||
- sketch: Emulation
|
||||
nfc: NFCA
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 3.2.5
|
||||
# CapHacker NFCB non-Detect sketches
|
||||
# CapCC1101 NFCB non-Detect sketches
|
||||
- sketch: JapanIDCard
|
||||
nfc: NFCB
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 3.2.5
|
||||
# CapHacker NFCF non-Detect sketches
|
||||
# CapCC1101 NFCF non-Detect sketches
|
||||
- sketch: Dump
|
||||
nfc: NFCF
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -334,7 +334,7 @@ jobs:
|
||||
- sketch: NDEF
|
||||
nfc: NFCF
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -342,7 +342,7 @@ jobs:
|
||||
- sketch: Subtract
|
||||
nfc: NFCF
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -350,7 +350,7 @@ jobs:
|
||||
- sketch: ReadWriteMAC
|
||||
nfc: NFCF
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -358,7 +358,7 @@ jobs:
|
||||
- sketch: JapanTransportationICCard
|
||||
nfc: NFCF
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -366,16 +366,16 @@ jobs:
|
||||
- sketch: Emulation
|
||||
nfc: NFCF
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 3.2.5
|
||||
# CapHacker NFCV non-Detect sketches
|
||||
# CapCC1101 NFCV non-Detect sketches
|
||||
- sketch: Dump
|
||||
nfc: NFCV
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
@@ -383,7 +383,7 @@ jobs:
|
||||
- sketch: NDEF
|
||||
nfc: NFCV
|
||||
board: m5stack_cardputer
|
||||
build-properties: "-DUSING_HACKER_CAP"
|
||||
build-properties: "-DUSING_CAP_CC1101"
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
|
||||
@@ -20,7 +20,7 @@ on:
|
||||
- '.github/workflows/platformio-build-check.yml'
|
||||
- 'platformio.ini'
|
||||
- 'unit_nfc_env.ini'
|
||||
- 'cap_hacker_env.ini'
|
||||
- 'cap_cc1101_env.ini'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/**.cpp'
|
||||
@@ -35,7 +35,7 @@ on:
|
||||
- '.github/workflows/platformio-build-check.yml'
|
||||
- 'platformio.ini'
|
||||
- 'unit_nfc_env.ini'
|
||||
- 'cap_hacker_env.ini'
|
||||
- 'cap_cc1101_env.ini'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
@@ -171,97 +171,97 @@ jobs:
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
|
||||
# CapHacker - all examples on Cardputer
|
||||
# CapCC1101 - all examples on Cardputer
|
||||
- example: NFCA_Detect
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCA_Dump
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCA_ReadWrite
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCA_ValueBlock
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCA_NDEF
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCA_Emulation
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
|
||||
- example: NFCB_Detect
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCB_JapanIDCard
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
|
||||
- example: NFCF_Detect
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCF_Dump
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCF_NDEF
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCF_Subtract
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCF_ReadWriteMAC
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCF_JapanTransportationICCard
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCF_Emulation
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
|
||||
- example: NFCV_Detect
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCV_Dump
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: NFCV_NDEF
|
||||
unit: CapHacker
|
||||
unit: CapCC1101
|
||||
board: CardputerADV
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
|
||||
@@ -5,10 +5,9 @@
|
||||
Library for Unit-NFC series using [M5UnitUnified](https://github.com/m5stack/M5UnitUnified).
|
||||
M5UnitUnified has a unified API and can control multiple units via PaHub, etc.
|
||||
|
||||
### SKU:xxx
|
||||
|
||||
Description of the product
|
||||
### SKU:U216
|
||||
|
||||
Unit NFC is a near-field communication (NFC) read/write unit based on a 13.56MHz frequency. It integrates the high-performance ST25R3916 NFC front-end chip, supporting NFC-A, NFC-B, NFC-F, and NFC-V standards, enabling read/write and communication functions for various NFC/RFID tags and cards. The chip supports reader mode, card emulation mode, and point-to-point communication mode, featuring automatic antenna tuning, high-sensitivity reception, and comprehensive protocol processing capabilities. This unit communicates with the host device via an I2C interface, providing stable data transmission performance. The product adopts a LEGO-compatible hole design, facilitating integration into creative structures or screw mounting, and is suitable for various applications requiring near-field communication and information verification, such as access control systems, identity recognition, intelligent transportation, and smart bookshelves.
|
||||
|
||||
## PICC Support
|
||||
|
||||
@@ -89,8 +88,7 @@ See examples: [NFCA Emulation](examples/UnitUnified/NFCA/Emulation) and [NFCF Em
|
||||
|
||||
## Related Link
|
||||
|
||||
- [Unit NFC & Datasheet](https://docs.m5stack.com/en/----------)
|
||||
- [CapHacker & Datasheet](https://docs.m5stack.com/en/---------)
|
||||
- [Unit NFC & Datasheet](https://docs.m5stack.com/en/products/sku/U216)
|
||||
|
||||
## Required Libraries
|
||||
|
||||
@@ -112,18 +110,22 @@ Each example contains the following block to select the unit:
|
||||
```cpp
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// For CapCC1101
|
||||
// #define USING_CAP_CC1101
|
||||
```
|
||||
|
||||
The examples are shared with [M5Unit-RFID](https://github.com/m5stack/M5Unit-RFID), which is why other unit definitions may exist.
|
||||
Uncomment `USING_UNIT_NFC` or `USING_HACKER_CAP`:
|
||||
Uncomment `USING_UNIT_NFC` or `USING_CAP_CC1101`:
|
||||
|
||||
```cpp
|
||||
#define USING_UNIT_NFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
```
|
||||
|
||||
**Note:** CapCC1101 / SKU:U219 (SPI connection via ST25R3916) is included in this library for future use.
|
||||
The product is not yet publicly available.
|
||||
|
||||
Some NFC-A examples are shared with [M5Unit-RFID](https://github.com/m5stack/M5Unit-RFID), which is why other unit definitions may exist.
|
||||
|
||||
## Doxygen document
|
||||
[GitHub Pages](https://m5stack.github.io/M5Unit-NFC/)
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
; For CapHacker / HackerCapNFC (SPI, ST25R3916)
|
||||
; For CapCC1101 / CapCC1101NFC (SPI, ST25R3916)
|
||||
|
||||
; --------------------------------
|
||||
; UnitTest
|
||||
; --------------------------------
|
||||
; CapHacker (SPI) - Cardputer only
|
||||
[env:test_CapHacker_CardputerADV]
|
||||
; CapCC1101 (SPI) - Cardputer only
|
||||
[env:test_CapCC1101_CardputerADV]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
lib_deps = ${Cardputer.lib_deps}
|
||||
${test_fw.lib_deps}
|
||||
test_filter= embedded/test_st25r3916
|
||||
@@ -16,136 +16,136 @@ test_filter= embedded/test_st25r3916
|
||||
; --------------------------------
|
||||
; Examples
|
||||
; --------------------------------
|
||||
; CapHacker
|
||||
; CapCC1101
|
||||
; ---- NFC-A
|
||||
[env:CapHacker_NFCA_Detect_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCA_Detect_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCA/Detect>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCA_Dump_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCA_Dump_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCA/Dump>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCA_ReadWrite_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCA_ReadWrite_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCA/ReadWrite>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCA_ValueBlock_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCA_ValueBlock_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCA/ValueBlock>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCA_NDEF_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCA_NDEF_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCA/NDEF>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCA_Emulation_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCA_Emulation_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCA/Emulation>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
; ---- NFC-B
|
||||
[env:CapHacker_NFCB_Detect_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCB_Detect_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCB/Detect>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCB_JapanIDCard_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCB_JapanIDCard_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCB/JapanIDCard>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
; ---- NFC-F
|
||||
[env:CapHacker_NFCF_Detect_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCF_Detect_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCF/Detect>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCF_Dump_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCF_Dump_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCF/Dump>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCF_NDEF_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCF_NDEF_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCF/NDEF>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCF_Subtract_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCF_Subtract_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCF/Subtract>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCF_ReadWriteMAC_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCF_ReadWriteMAC_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCF/ReadWriteMAC>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCF_JapanTransportationICCard_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCF_JapanTransportationICCard_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCF/JapanTransportationICCard>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCF_Emulation_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCF_Emulation_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCF/Emulation>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
; ---- NFC-V
|
||||
[env:CapHacker_NFCV_Detect_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCV_Detect_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCV/Detect>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCV_Dump_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCV_Dump_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCV/Dump>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
[env:CapHacker_NFCV_NDEF_CardputerADV_Arduino_latest]
|
||||
[env:CapCC1101_NFCV_NDEF_CardputerADV_Arduino_latest]
|
||||
extends=Cardputer, option_release, arduino_latest
|
||||
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/NFCV/NDEF>
|
||||
build_flags = ${Cardputer.build_flags}
|
||||
${option_release.build_flags}
|
||||
-D USING_HACKER_CAP
|
||||
-D USING_CAP_CC1101
|
||||
|
||||
;------------------------------------
|
||||
[env:UnitNFC_NFCA_Dump_NanoC6_Arduino_latest]
|
||||
@@ -11,11 +11,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
@@ -41,9 +41,9 @@ m5::unit::UnitUnified Units;
|
||||
#if defined(USING_UNIT_NFC)
|
||||
#pragma message "Choose UnitNFC"
|
||||
m5::unit::UnitNFC unit{}; // I2C
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#pragma message "Choose HackerCapNFC"
|
||||
m5::unit::HackerCapNFC unit{}; // HackerCap (SPI)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
#pragma message "Choose CapCC1101NFC"
|
||||
m5::unit::CapCC1101NFC unit{}; // CapCC1101 (SPI)
|
||||
#elif defined(USING_UNIT_RFID2)
|
||||
#pragma message "Choose UnitRFID2"
|
||||
m5::unit::UnitRFID2 unit{}; // UnitRFID2 (M5Unit-RFID)
|
||||
@@ -100,7 +100,7 @@ void setup()
|
||||
m5::utility::delay(10000);
|
||||
}
|
||||
}
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
if (!SPI.bus()) {
|
||||
auto spi_sclk = M5.getPin(m5::pin_name_t::sd_spi_sclk);
|
||||
auto spi_mosi = M5.getPin(m5::pin_name_t::sd_spi_mosi);
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
@@ -43,9 +43,9 @@ m5::unit::UnitUnified Units;
|
||||
#if defined(USING_UNIT_NFC)
|
||||
#pragma message "Choose UnitNFC"
|
||||
m5::unit::UnitNFC unit{}; // I2C
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#pragma message "Choose HackerCapNFC"
|
||||
m5::unit::HackerCapNFC unit{}; // HackerCap (SPI)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
#pragma message "Choose CapCC1101NFC"
|
||||
m5::unit::CapCC1101NFC unit{}; // CapCC1101 (SPI)
|
||||
#elif defined(USING_UNIT_RFID2)
|
||||
#pragma message "Choose UnitRFID2"
|
||||
m5::unit::UnitRFID2 unit{}; // UnitRFID2 (M5Unit-RFID)
|
||||
@@ -99,7 +99,7 @@ void setup()
|
||||
m5::utility::delay(10000);
|
||||
}
|
||||
}
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
if (!SPI.bus()) {
|
||||
auto spi_sclk = M5.getPin(m5::pin_name_t::sd_spi_sclk);
|
||||
auto spi_mosi = M5.getPin(m5::pin_name_t::sd_spi_mosi);
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
#endif
|
||||
#include "main/Emulation.cpp"
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
#endif
|
||||
#if defined(USING_UNIT_RFID2)
|
||||
#error UnitRFID2 does NOT support emulation
|
||||
@@ -40,9 +40,9 @@ m5::unit::UnitUnified Units;
|
||||
#if defined(USING_UNIT_NFC)
|
||||
#pragma message "Choose UnitNFC"
|
||||
m5::unit::UnitNFC unit{}; // I2C
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#pragma message "Choose HackerCapNFC"
|
||||
m5::unit::HackerCapNFC unit{}; // HackerCap (SPI)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
#pragma message "Choose CapCC1101NFC"
|
||||
m5::unit::CapCC1101NFC unit{}; // CapCC1101 (SPI)
|
||||
#else
|
||||
#error Choose unit please!
|
||||
#endif
|
||||
@@ -197,7 +197,7 @@ void setup()
|
||||
m5::utility::delay(10000);
|
||||
}
|
||||
}
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
if (!SPI.bus()) {
|
||||
auto spi_sclk = M5.getPin(m5::pin_name_t::sd_spi_sclk);
|
||||
auto spi_mosi = M5.getPin(m5::pin_name_t::sd_spi_mosi);
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
@@ -45,9 +45,9 @@ m5::unit::UnitUnified Units;
|
||||
#if defined(USING_UNIT_NFC)
|
||||
#pragma message "Choose UnitNFC"
|
||||
m5::unit::UnitNFC unit{}; // I2C
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#pragma message "Choose HackerCapNFC"
|
||||
m5::unit::HackerCapNFC unit{}; // HackerCap (SPI)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
#pragma message "Choose CapCC1101NFC"
|
||||
m5::unit::CapCC1101NFC unit{}; // CapCC1101 (SPI)
|
||||
#elif defined(USING_UNIT_RFID2)
|
||||
#pragma message "Choose UnitRFID2"
|
||||
m5::unit::UnitRFID2 unit{}; // UnitRFID2 (M5Unit-RFID)
|
||||
@@ -294,7 +294,7 @@ void setup()
|
||||
m5::utility::delay(10000);
|
||||
}
|
||||
}
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
if (!SPI.bus()) {
|
||||
auto spi_sclk = M5.getPin(m5::pin_name_t::sd_spi_sclk);
|
||||
auto spi_mosi = M5.getPin(m5::pin_name_t::sd_spi_mosi);
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
@@ -48,9 +48,9 @@ m5::unit::UnitUnified Units;
|
||||
#if defined(USING_UNIT_NFC)
|
||||
#pragma message "Choose UnitNFC"
|
||||
m5::unit::UnitNFC unit{}; // I2C
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#pragma message "Choose HackerCapNFC"
|
||||
m5::unit::HackerCapNFC unit{}; // HackerCap (SPI)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
#pragma message "Choose CapCC1101NFC"
|
||||
m5::unit::CapCC1101NFC unit{}; // CapCC1101 (SPI)
|
||||
#elif defined(USING_UNIT_RFID2)
|
||||
#pragma message "Choose UnitRFID2"
|
||||
m5::unit::UnitRFID2 unit{}; // UnitRFID2 (M5Unit-RFID)
|
||||
@@ -682,7 +682,7 @@ void setup()
|
||||
m5::utility::delay(10000);
|
||||
}
|
||||
}
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
if (!SPI.bus()) {
|
||||
auto spi_sclk = M5.getPin(m5::pin_name_t::sd_spi_sclk);
|
||||
auto spi_mosi = M5.getPin(m5::pin_name_t::sd_spi_mosi);
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP) && !defined(USING_UNIT_RFID2)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101) && !defined(USING_UNIT_RFID2)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
// For UnitRFID2
|
||||
// #define USING_UNIT_RFID2
|
||||
#endif
|
||||
@@ -43,9 +43,9 @@ m5::unit::UnitUnified Units;
|
||||
#if defined(USING_UNIT_NFC)
|
||||
#pragma message "Choose UnitNFC"
|
||||
m5::unit::UnitNFC unit{}; // I2C
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#pragma message "Choose HackerCapNFC"
|
||||
m5::unit::HackerCapNFC unit{}; // HackerCap (SPI)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
#pragma message "Choose CapCC1101NFC"
|
||||
m5::unit::CapCC1101NFC unit{}; // CapCC1101 (SPI)
|
||||
#elif defined(USING_UNIT_RFID2)
|
||||
#pragma message "Choose UnitRFID2"
|
||||
m5::unit::UnitRFID2 unit{}; // UnitRFID2 (M5Unit-RFID)
|
||||
@@ -460,7 +460,7 @@ void setup()
|
||||
m5::utility::delay(10000);
|
||||
}
|
||||
}
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
if (!SPI.bus()) {
|
||||
auto spi_sclk = M5.getPin(m5::pin_name_t::sd_spi_sclk);
|
||||
auto spi_mosi = M5.getPin(m5::pin_name_t::sd_spi_mosi);
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
#endif
|
||||
#include "main/Detect.cpp"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
/*
|
||||
Example using M5UnitUnified for M5Cardputer-ADV with HackerCap
|
||||
Example using M5UnitUnified for M5Cardputer-ADV with CapCC1101
|
||||
Detect NFC-B PICC
|
||||
*/
|
||||
#include <M5Unified.h>
|
||||
@@ -16,11 +16,11 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
#endif
|
||||
|
||||
using namespace m5::nfc;
|
||||
@@ -33,9 +33,9 @@ m5::unit::UnitUnified Units;
|
||||
#if defined(USING_UNIT_NFC)
|
||||
#pragma message "Choose UnitNFC"
|
||||
m5::unit::UnitNFC unit{}; // I2C
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#pragma message "Choose HackerCapNFC"
|
||||
m5::unit::HackerCapNFC unit{}; // HackerCap (SPI)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
#pragma message "Choose CapCC1101NFC"
|
||||
m5::unit::CapCC1101NFC unit{}; // CapCC1101 (SPI)
|
||||
#else
|
||||
#error Choose unit please!
|
||||
#endif
|
||||
@@ -73,7 +73,7 @@ void setup()
|
||||
m5::utility::delay(10000);
|
||||
}
|
||||
}
|
||||
#elif defined(USING_HACKER_CAP)
|
||||
#elif defined(USING_CAP_CC1101)
|
||||
if (!SPI.bus()) {
|
||||
auto spi_sclk = M5.getPin(m5::pin_name_t::sd_spi_sclk);
|
||||
auto spi_mosi = M5.getPin(m5::pin_name_t::sd_spi_mosi);
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
// *************************************************************
|
||||
// Choose one define symbol to match the unit you are using
|
||||
// *************************************************************
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_HACKER_CAP)
|
||||
#if !defined(USING_UNIT_NFC) && !defined(USING_CAP_CC1101)
|
||||
// For UnitNFC
|
||||
// #define USING_UNIT_NFC
|
||||
// For CapNFC
|
||||
// #define USING_HACKER_CAP
|
||||
// #define USING_CAP_CC1101
|
||||
#endif
|
||||
#include "main/JapanIDCard.cpp"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user