Skip to content

Commit 5cac815

Browse files
committed
refactor
1 parent ae78bda commit 5cac815

29 files changed

+2851
-2591
lines changed

.github/workflows/main.yml

+45-45
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
name: PlatformIO CI
2-
3-
on: [push]
4-
5-
jobs:
6-
build:
7-
8-
runs-on: ${{ matrix.os }}
9-
strategy:
10-
matrix:
11-
os: [ubuntu-latest, macos-latest, windows-latest]
12-
example: [examples/CleanTag/CleanTag.ino, examples/EraseTag/EraseTag.ino, examples/FormatTag/FormatTag.ino,
13-
examples/ReadTag/ReadTag.ino, examples/ReadTagExtended/ReadTagExtended.ino, examples/WriteTag/WriteTag.ino,
14-
examples/WriteTagMultipleRecords/WriteTagMultipleRecords.ino]
15-
16-
steps:
17-
- uses: actions/checkout@v2
18-
- name: Cache pip
19-
uses: actions/cache@v2
20-
with:
21-
path: ~/.cache/pip
22-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
23-
restore-keys: |
24-
${{ runner.os }}-pip-
25-
- name: Cache PlatformIO
26-
uses: actions/cache@v2
27-
with:
28-
path: ~/.platformio
29-
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
30-
31-
- name: Set up Python
32-
uses: actions/setup-python@v2
33-
34-
- name: Install PlatformIO
35-
run: |
36-
python -m pip install --upgrade pip
37-
pip install --upgrade platformio
38-
pio lib -g install "miguelbalboa/MFRC522"
39-
40-
- name: Run PlatformIO
41-
run: |
42-
43-
pio ci --lib="." --board=uno --board=nucleo_f767zi --board=nodemcuv2 --board=esp32dev --board=adafruit_feather_m4
44-
env:
45-
PLATFORMIO_BUILD_FLAGS: -DNDEF_DEBUG -DNDEF_USE_SERIAL
1+
name: PlatformIO CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
example: [examples/CleanTag/CleanTag.ino, examples/EraseTag/EraseTag.ino, examples/FormatTag/FormatTag.ino,
13+
examples/ReadTag/ReadTag.ino, examples/ReadTagExtended/ReadTagExtended.ino, examples/WriteTag/WriteTag.ino,
14+
examples/WriteTagMultipleRecords/WriteTagMultipleRecords.ino]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Cache pip
19+
uses: actions/cache@v2
20+
with:
21+
path: ~/.cache/pip
22+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
23+
restore-keys: |
24+
${{ runner.os }}-pip-
25+
- name: Cache PlatformIO
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/.platformio
29+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v2
33+
34+
- name: Install PlatformIO
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install --upgrade platformio
38+
pio lib -g install "miguelbalboa/MFRC522"
39+
40+
- name: Run PlatformIO
41+
run: |
42+
43+
pio ci --lib="." --board=uno --board=nucleo_f767zi --board=nodemcuv2 --board=esp32dev --board=adafruit_feather_m4
44+
env:
45+
PLATFORMIO_BUILD_FLAGS: -DNDEF_DEBUG -DNDEF_USE_SERIAL
4646
PLATFORMIO_CI_SRC: ${{ matrix.example }}

.gitignore

+35-35
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
# Arduino related
2-
.development
3-
4-
# Prerequisites
5-
*.d
6-
7-
# Compiled Object files
8-
*.slo
9-
*.lo
10-
*.o
11-
*.obj
12-
13-
# Precompiled Headers
14-
*.gch
15-
*.pch
16-
17-
# Compiled Dynamic libraries
18-
*.so
19-
*.dylib
20-
*.dll
21-
22-
# Fortran module files
23-
*.mod
24-
*.smod
25-
26-
# Compiled Static libraries
27-
*.lai
28-
*.la
29-
*.a
30-
*.lib
31-
32-
# Executables
33-
*.exe
34-
*.out
35-
*.app
1+
# Arduino related
2+
.development
3+
4+
# Prerequisites
5+
*.d
6+
7+
# Compiled Object files
8+
*.slo
9+
*.lo
10+
*.o
11+
*.obj
12+
13+
# Precompiled Headers
14+
*.gch
15+
*.pch
16+
17+
# Compiled Dynamic libraries
18+
*.so
19+
*.dylib
20+
*.dll
21+
22+
# Fortran module files
23+
*.mod
24+
*.smod
25+
26+
# Compiled Static libraries
27+
*.lai
28+
*.la
29+
*.a
30+
*.lib
31+
32+
# Executables
33+
*.exe
34+
*.out
35+
*.app

LICENSE

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
Software License Agreement (BSD License)
2-
3-
Copyright (c) 2013-2014, Don Coleman
4-
All rights reserved.
5-
6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
8-
9-
1. Redistributions of source code must retain the above copyright
10-
notice, this list of conditions and the following disclaimer.
11-
12-
2. Redistributions in binary form must reproduce the above copyright
13-
notice, this list of conditions and the following disclaimer in the
14-
documentation and/or other materials provided with the distribution.
15-
16-
3. Neither the name of the copyright holders nor the
17-
names of its contributors may be used to endorse or promote products
18-
derived from this software without specific prior written permission.
19-
20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY
21-
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
24-
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1+
Software License Agreement (BSD License)
2+
3+
Copyright (c) 2013-2014, Don Coleman
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright
10+
notice, this list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright
13+
notice, this list of conditions and the following disclaimer in the
14+
documentation and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holders nor the
17+
names of its contributors may be used to endorse or promote products
18+
derived from this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY
21+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
24+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2929
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)