Skip to content

Commit 398016e

Browse files
authored
Add init() to run once, fixes #114 (#116)
1 parent 2c1f1a0 commit 398016e

18 files changed

+118
-27
lines changed

.travis.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
language: c
1+
language: python
2+
python:
3+
- "2.7"
4+
5+
# Cache PlatformIO packages using Travis CI container-based infrastructure
26
sudo: false
3-
before_install:
4-
- source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh)
7+
cache:
8+
directories:
9+
- "~/.platformio"
10+
11+
env:
12+
- PLATFORMIO_CI_SRC=test
13+
14+
install:
15+
- pip install -U platformio
16+
517
script:
6-
- build_main_platforms
7-
- build_platform trinket
18+
- platformio ci --lib=src --board=leonardo --board=sparkfun_promicro8

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Johan Stokking <johan@thethingsnetwork.org>
2-
Fokke Zandbergen <mail@fokkezb.nl>
2+
Fokke Zandbergen <mail@fokkezb.nl>

.github/CONTRIBUTING.md renamed to CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
We'd ❤️ to welcome your contribution. Please make sure you:
44

55
1. Keep [keywords.txt](../keywords.txt) up to date with your changes.
6-
2. Keep [API.md](../API.md) up to date with your changes.
6+
2. Keep [API.md](../API.md) up to date with your changes.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# The Things Network Arduino Library
2+
[![Build Status](https://travis-ci.org/TheThingsNetwork/arduino-device-lib.svg?branch=master)](https://travis-ci.org/TheThingsNetwork/arduino-device-lib)
23

34
This is an [Arduino Library](https://www.arduino.cc/en/Guide/Libraries) for Arduino-compatible devices like [The Things Uno](https://shop.thethingsnetwork.com/index.php/product/the-things-uno/) and [Node](https://shop.thethingsnetwork.com/index.php/product/the-things-node/) to communicate via [The Things Network](https://www.thethingsnetwork.org).
45

examples/ABP/ABP.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ void loop() {
3535
ttn.sendBytes(payload, sizeof(payload));
3636

3737
delay(10000);
38-
}
38+
}

examples/PassThrough/PassThrough.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ void loop() {
2727
while (loraSerial.available()) {
2828
debugSerial.write(loraSerial.read());
2929
}
30-
}
30+
}

examples/QuickStart/Converter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ function Converter(decoded) {
1212
}
1313

1414
return converted;
15-
}
15+
}

examples/QuickStart/Decoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ function Decoder(bytes) {
66
decoded.led = bytes[0];
77

88
return decoded;
9-
}
9+
}

examples/QuickStart/Encoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ function Encoder(object) {
66
bytes[0] = object.led ? 1 : 0;
77

88
return bytes;
9-
}
9+
}

0 commit comments

Comments
 (0)