Skip to content

Commit

Permalink
Merge pull request #10 from BeelanMX/redefine_pins_example
Browse files Browse the repository at this point in the history
redefine pins examples
  • Loading branch information
sabas1080 authored Feb 15, 2019
2 parents b5eb385 + 03f7002 commit 9b55b26
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ before_install:
fi
- buildExampleSketch() { arduino --verbose-build --verify --board $BOARD $PWD/examples/$1/$1.ino; }
install:
- arduino --install-library "Electronic Cats Internal Temperature Zero Library"
- mkdir -p $HOME/Arduino/libraries
- ln -s $PWD $HOME/Arduino/libraries/Arduino_LoRaWAN_by_Beelan
script:
- buildExampleSketch lorawan-send-class-A
- buildExampleSketch lorawan-send-class-A-temperature
- if [[ "$BOARD" == "arduino:samd:arduino_zero_edbg" ]] || [[ "$BOARD" == "arduino:samd:mkr1000" ]] || [[ "$BOARD" == "arduino:samd:mkrzero" ]]; then
buildExampleSketch lorawan-send-class-A;
fi
- buildExampleSketch lorawan-send-class-C
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ long previousMillis = 0; // will store last time message sent
unsigned int counter = 0; // message counter

const sRFM_pins RFM_pins = {
.CS = SS,
.RST = RFM_RST,
.DIO0 = RFM_DIO0,
.DIO1 = RFM_DIO1,
.DIO2 = RFM_DIO2,
.DIO5 = RFM_DIO5,
.CS = 10,
.RST = 9,
.DIO0 = 2,
.DIO1 = 3,
.DIO2 = 4,
.DIO5 = 5,
};

void setup() {
Expand Down
12 changes: 6 additions & 6 deletions examples/lorawan-send-class-A/lorawan-send-class-A.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ long previousMillis = 0; // will store last time message sent
unsigned int counter = 0; // message counter

const sRFM_pins RFM_pins = {
.CS = SS,
.RST = RFM_RST,
.DIO0 = RFM_DIO0,
.DIO1 = RFM_DIO1,
.DIO2 = RFM_DIO2,
.DIO5 = RFM_DIO5,
.CS = 10,
.RST = 9,
.DIO0 = 2,
.DIO1 = 3,
.DIO2 = 4,
.DIO5 = 5,
};

void setup() {
Expand Down
12 changes: 6 additions & 6 deletions examples/lorawan-send-class-C/lorawan-send-class-C.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ long previousMillis = 0; // will store last time message sent
unsigned int counter = 0; // message counter

const sRFM_pins RFM_pins = {
.CS = SS,
.RST = RFM_RST,
.DIO0 = RFM_DIO0,
.DIO1 = RFM_DIO1,
.DIO2 = RFM_DIO2,
.DIO5 = RFM_DIO5,
.CS = 10,
.RST = 9,
.DIO0 = 2,
.DIO1 = 3,
.DIO2 = 4,
.DIO5 = 5,
};

void setup() {
Expand Down

0 comments on commit 9b55b26

Please sign in to comment.