File tree Expand file tree Collapse file tree 4 files changed +123
-0
lines changed Expand file tree Collapse file tree 4 files changed +123
-0
lines changed Original file line number Diff line number Diff line change 26
26
* .exe
27
27
* .out
28
28
* .app
29
+ .pioenvs
30
+ .piolibdeps
31
+ .clang_complete
32
+ .gcc-flags.json
Original file line number Diff line number Diff line change
1
+ # Continuous Integration (CI) is the practice, in software
2
+ # engineering, of merging all developer working copies with a shared mainline
3
+ # several times a day < http://docs.platformio.org/page/ci/index.html >
4
+ #
5
+ # Documentation:
6
+ #
7
+ # * Travis CI Embedded Builds with PlatformIO
8
+ # < https://docs.travis-ci.com/user/integration/platformio/ >
9
+ #
10
+ # * PlatformIO integration with Travis CI
11
+ # < http://docs.platformio.org/page/ci/travis.html >
12
+ #
13
+ # * User Guide for `platformio ci` command
14
+ # < http://docs.platformio.org/page/userguide/cmd_ci.html >
15
+ #
16
+ #
17
+ # Please choice one of the following templates (proposed below) and uncomment
18
+ # it (remove "# " before each line) or use own configuration according to the
19
+ # Travis CI documentation (see above).
20
+ #
21
+
22
+
23
+ #
24
+ # Template #1: General project. Test it using existing `platformio.ini`.
25
+ #
26
+
27
+ # language: python
28
+ # python:
29
+ # - "2.7"
30
+ #
31
+ # sudo: false
32
+ # cache:
33
+ # directories:
34
+ # - "~/.platformio"
35
+ #
36
+ # install:
37
+ # - pip install -U platformio
38
+ #
39
+ # script:
40
+ # - platformio run
41
+
42
+
43
+ #
44
+ # Template #2: The project is intended to by used as a library with examples
45
+ #
46
+
47
+ # language: python
48
+ # python:
49
+ # - "2.7"
50
+ #
51
+ # sudo: false
52
+ # cache:
53
+ # directories:
54
+ # - "~/.platformio"
55
+ #
56
+ # env:
57
+ # - PLATFORMIO_CI_SRC=path/to/test/file.c
58
+ # - PLATFORMIO_CI_SRC=examples/file.ino
59
+ # - PLATFORMIO_CI_SRC=path/to/test/directory
60
+ #
61
+ # install:
62
+ # - pip install -U platformio
63
+ #
64
+ # script:
65
+ # - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N
Original file line number Diff line number Diff line change
1
+
2
+ This directory is intended for the project specific (private) libraries.
3
+ PlatformIO will compile them to static libraries and link to executable file.
4
+
5
+ The source code of each library should be placed in separate directory, like
6
+ "lib/private_lib/[here are source files]".
7
+
8
+ For example, see how can be organized `Foo` and `Bar` libraries:
9
+
10
+ |--lib
11
+ | |--Bar
12
+ | | |--docs
13
+ | | |--examples
14
+ | | |--src
15
+ | | |- Bar.c
16
+ | | |- Bar.h
17
+ | |--Foo
18
+ | | |- Foo.c
19
+ | | |- Foo.h
20
+ | |- readme.txt --> THIS FILE
21
+ |- platformio.ini
22
+ |--src
23
+ |- main.c
24
+
25
+ Then in `src/main.c` you should use:
26
+
27
+ #include <Foo.h>
28
+ #include <Bar.h>
29
+
30
+ // rest H/C/CPP code
31
+
32
+ PlatformIO will find your libraries automatically, configure preprocessor's
33
+ include paths and build them.
34
+
35
+ More information about PlatformIO Library Dependency Finder
36
+ - http://docs.platformio.org/page/librarymanager/ldf.html
Original file line number Diff line number Diff line change
1
+ ; PlatformIO Project Configuration File
2
+ ;
3
+ ; Build options: build flags, source filter
4
+ ; Upload options: custom upload port, speed and extra flags
5
+ ; Library options: dependencies, extra library storages
6
+ ; Advanced options: extra scripting
7
+ ;
8
+ ; Please visit documentation for the other options and examples
9
+ ; http://docs.platformio.org/page/projectconf.html
10
+
11
+ [env:d1_mini]
12
+ platform = espressif8266
13
+ board = d1_mini
14
+ framework = arduino
15
+
16
+ lib_deps =
17
+ # Using library Name
18
+ ArduinoJson
You can’t perform that action at this time.
0 commit comments