Skip to content

Commit 4f9f0d1

Browse files
committed
ch3cked ansiSerial example
1 parent ead6338 commit 4f9f0d1

File tree

4 files changed

+90
-18
lines changed

4 files changed

+90
-18
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

examples/Serial/ansiSerial/platformio.ini

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
src_dir=ansiSerial
1212
lib_dir=~/Arduino/Libraries
1313

14-
; [env:nanoatmega328]
15-
; platform = atmelavr
16-
; board = nanoatmega328
17-
; framework = arduino
18-
; build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing -DDEBUG
14+
[env:nanoatmega328]
15+
platform = atmelavr
16+
board = nanoatmega328
17+
framework = arduino
18+
build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing -DDEBUG
1919

2020
;[env:teensy31]
2121
;platform = teensy
@@ -35,8 +35,8 @@ lib_dir=~/Arduino/Libraries
3535
;framework = arduino
3636
;build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing -lstdc++
3737

38-
[env:esp12e]
39-
platform = espressif8266
40-
board = esp12e
41-
framework = arduino
38+
; [env:esp12e]
39+
; platform = espressif8266
40+
; board = esp12e
41+
; framework = arduino
4242
; build_flags = -Wno-comment -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing -DDEBUG
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

examples/Serial/serialio/platformio.ini

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ src_dir=serialio
1818
; framework = arduino
1919
;build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing
2020

21-
[env:teensy31]
22-
platform = teensy
23-
board = teensy31
24-
framework = arduino
25-
build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing -lstdc++
21+
; [env:teensy31]
22+
; platform = teensy
23+
; board = teensy31
24+
; framework = arduino
25+
; build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing -lstdc++
2626

2727
; [env:due]
2828
; platform = atmelsam
@@ -48,7 +48,7 @@ build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-
4848
; framework = arduino
4949
; build_flags = -Wno-comment -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing -DDEBUG
5050

51-
; [env:uno]
52-
; platform = atmelavr
53-
; board = uno
54-
; framework = arduino
51+
[env:uno]
52+
platform = atmelavr
53+
board = uno
54+
framework = arduino

0 commit comments

Comments
 (0)