Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
Initialize platformio project
Browse files Browse the repository at this point in the history
  • Loading branch information
simnalamburt committed Mar 21, 2016
1 parent 9e06805 commit ce4e30e
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.pioenvs
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Reference: http://docs.platformio.org/en/latest/ci/travis.html

language: python
python:
- "2.7"

sudo: false
cache:
directories:
- "~/.platformio"

install:
- pip install -U platformio

script:
- platformio run
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Arduino Practice
========

Please use [PlatformIO](http://platformio.org/) to build and execute project.
```bash
# Install PlatformIO
brew install platformio
# Build project and upload to connected Arduino machine
platformio run
```
43 changes: 43 additions & 0 deletions lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Libraries
--------

This directory is intended for the project specific (private) libraries.
PlatformIO will compile them to static libraries and link to executable file.

The source code of each library should be placed in separate directory, like
`lib/private_lib/[here are source files]`.

For example, see how can be organized `Foo` and `Bar` libraries:

```
|--lib
| |--Bar
| | |--docs
| | |--examples
| | |--src
| | |- Bar.c
| | |- Bar.h
| |--Foo
| | |- Foo.c
| | |- Foo.h
| |- readme.txt --> THIS FILE
|- platformio.ini
|--src
|- main.c
```

Then in `src/main.c` you should use:

```cpp
#include <Foo.h>
#include <Bar.h>

// rest H/C/CPP code
```

PlatformIO will find your libraries automatically, configure preprocessor's
include paths and build them.

See additional options for PlatformIO Library Dependency Finder `lib_*`:

http://docs.platformio.org/en/latest/projectconf.html#lib-install
9 changes: 9 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Reference: http://docs.platformio.org/en/latest/projectconf.html

[env:atmelavr_arduino_uno_board]
platform = atmelavr
framework = arduino
board = uno

# Auto-uploading
targets = upload

0 comments on commit ce4e30e

Please sign in to comment.