Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
merge in release v2.0.0
  • Loading branch information
cujomalainey committed Jun 29, 2020
2 parents a5b73d7 + b73dc4d commit a4a752e
Show file tree
Hide file tree
Showing 158 changed files with 1,953 additions and 772 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/deploy.sh
.DS_Store
.pioenvs
.pio
tags

# ignore any soft device source for testing
Expand All @@ -18,3 +19,9 @@ ant_interface.h

# ignore main file for testing
src/main.cpp
.pio/build/project.checksum
.vscode/c_cpp_properties.json
.vscode/extensions.json
.vscode/launch.json
/*.cpp
/zephyr
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ cache:
- "~/.platformio"

env:
- PLATFORMIO_CI_SRC=examples/AntVersion/AntVersion.ino
- PLATFORMIO_CI_SRC=examples/Callbacks/Callbacks.ino
- PLATFORMIO_CI_SRC=examples/OpenChannel/OpenChannel.ino
- PLATFORMIO_CI_SRC=examples/ProximitySearch/ProximitySearch.ino
- PLATFORMIO_CI_SRC=examples/RSSIScan/RSSIScan.ino
- PLATFORMIO_CI_SRC=examples/SearchList/SearchList.ino
- PLATFORMIO_CI_SRC=examples/SoftwareSerialOpenChannel/SoftwareSerialOpenChannel.ino
- PLATFORMIO_CI_SRC=examples/TxCounter/TxCounter.ino
- PLATFORMIO_CI_SRC=examples/Arduino/AntVersion/AntVersion.ino
- PLATFORMIO_CI_SRC=examples/Arduino/Callbacks/Callbacks.ino
- PLATFORMIO_CI_SRC=examples/Arduino/OpenChannel/OpenChannel.ino
- PLATFORMIO_CI_SRC=examples/Arduino/ProximitySearch/ProximitySearch.ino
- PLATFORMIO_CI_SRC=examples/Arduino/RSSIScan/RSSIScan.ino
- PLATFORMIO_CI_SRC=examples/Arduino/SearchList/SearchList.ino
- PLATFORMIO_CI_SRC=examples/Arduino/SoftwareSerialOpenChannel/SoftwareSerialOpenChannel.ino
- PLATFORMIO_CI_SRC=examples/Arduino/TxCounter/TxCounter.ino

install:
- pip install -U platformio
Expand Down
Empty file modified COPYING
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Arduino library for communicating with ANT radios, with support for nRF51 device

[![Build Status](https://travis-ci.org/cujomalainey/ant-arduino.svg?branch=master)](https://travis-ci.org/cujomalainey/ant-arduino)
[![Test Status](https://img.shields.io/circleci/build/github/cujomalainey/ant-arduino?label=test)](https://circleci.com/gh/cujomalainey/ant-arduino)
[![BCH compliance](https://bettercodehub.com/edge/badge/cujomalainey/ant-arduino?branch=master)](https://bettercodehub.com/)

## News

* 06/28/2020 ant-arduino v2.0.0 released with mbed support
* 10/01/2017 [Antplus-arduino](https://github.com/cujomalainey/antplus-arduino) released
* 09/30/2017 Callback system complete, v1.0.0 released
* 09/10/2017 System refactor complete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "ANT.h"
#define BAUD_RATE 9600
Ant ant = Ant();
ArduinoSerialAnt ant;

void parseMessage();
void parseEventMessage(uint8_t code);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "ANT.h"
#define BAUD_RATE 9600
AntWithCallbacks ant = AntWithCallbacks();
ArduinoSerialAntWithCallbacks ant;

// Arbitrary key, if you want to connect to ANT+, you must get the key from thisisant.com
const uint8_t NETWORK_KEY[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77};
Expand Down Expand Up @@ -166,4 +166,4 @@ void handleChannelEventResponse(ChannelEventResponse& cer, uintptr_t data) {
bool itsAlive(StartUpMessage& sm, uintptr_t data) {
Serial.println("Radio Reset!");
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "ANT.h"
#define BAUD_RATE 9600
Ant ant = Ant();
ArduinoSerialAnt ant;

// Arbitrary key, if you want to connect to ANT+, you must get the key from thisisant.com
const uint8_t NETWORK_KEY[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "ANT.h"
#define BAUD_RATE 9600
Ant ant = Ant();
ArduinoSerialAnt ant;

// Arbitrary key, if you want to connect to ANT+, you must get the key from thisisant.com
const uint8_t NETWORK_KEY[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "ANT.h"
#define BAUD_RATE 9600
Ant ant = Ant();
ArduinoSerialAnt ant;

const uint8_t NETWORK_KEY[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77};

Expand Down Expand Up @@ -41,13 +41,13 @@ void setup()
ant.send(snk);
parseMessage();

ac.setChannel(0);
ac.setChannel(OPEN_RX_SCAN_MODE_CHANNEL);
ac.setChannelType(CHANNEL_TYPE_BIDIRECTIONAL_RECEIVE); //can't wildcard this
ac.setChannelNetwork(0);
ant.send(ac);
parseMessage();

ci.setChannel(0);
ci.setChannel(OPEN_RX_SCAN_MODE_CHANNEL);
ci.setDeviceNumber(0);
ci.setDeviceType(0);
ci.setTransmissionType(0);
Expand All @@ -58,7 +58,7 @@ void setup()
ant.send(lb);
parseMessage();

crf.setChannel(0);
crf.setChannel(OPEN_RX_SCAN_MODE_CHANNEL);
crf.setRfFrequency(0); //can't wildcard this
ant.send(crf);
parseMessage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define DEVICE_TYPE_HR 120
#define ANTPLUS_FREQUENCY 57

Ant ant = Ant();
ArduinoSerialAnt ant;

// Arbitrary key, if you want to connect to ANT+, you must get the key from thisisant.com
const uint8_t NETWORK_KEY[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77};
Expand Down Expand Up @@ -68,12 +68,12 @@ void setup()
snk.setKey((uint8_t*)NETWORK_KEY);
ant.send(snk);
parseMessage();

// open all channels
for (uint8_t i = 0; i < maxChannels; i++) {
ac = AssignChannel();
ac.setChannel(i);
ac.setChannelType(CHANNEL_TYPE_BIDIRECTIONAL_RECEIVE);
ac.setChannelType(CHANNEL_TYPE_BIDIRECTIONAL_RECEIVE);
ac.setChannelNetwork(0);
ant.send(ac);
parseMessage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define BAUD_RATE 9600
#define SOFT_RX_PIN 2
#define SOFT_TX_PIN 3
Ant ant = Ant();
ArduinoSerialAnt ant;
SoftwareSerial soft(SOFT_RX_PIN, SOFT_TX_PIN);

// Arbitrary key, if you want to connect to ANT+, you must get the key from thisisant.com
Expand Down
Loading

0 comments on commit a4a752e

Please sign in to comment.