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

Commit

Permalink
Merge pull request #20 from helium/fix-boardname-rev2
Browse files Browse the repository at this point in the history
fix boardname
  • Loading branch information
madninja committed Apr 18, 2019
2 parents fb4da7c + 37e3b75 commit 2f4c5d4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -27,7 +27,7 @@ Arduino M0 Pro | 0 | 1 |
Arduino Zero | 0 | 1 | |
Arduino Due | 9 | 8 | Wire up RX3 (15) to pin 8 on board, TX3 to pin9 |
Arduino Mega | 10 | 11 | |

Arduino WiFi Rev2 | 9 | 8 | |
## Example Setup ##

The example sketches can be found in the Arduino IDE under _File >
Expand Down
2 changes: 1 addition & 1 deletion examples/Basic/Board.h
Expand Up @@ -12,7 +12,7 @@
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600

#elif defined(AVR_UNO_WIFI_R2)
#elif defined(ARDUINO_AVR_UNO_WIFI_REV2)
#include "SoftwareSerial.h"
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600
Expand Down
2 changes: 1 addition & 1 deletion examples/Config/Board.h
Expand Up @@ -12,7 +12,7 @@
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600

#elif defined(AVR_UNO_WIFI_R2)
#elif defined(ARDUINO_AVR_UNO_WIFI_REV2)
#include "SoftwareSerial.h"
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600
Expand Down
2 changes: 1 addition & 1 deletion examples/Downlink/Board.h
Expand Up @@ -12,7 +12,7 @@
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600

#elif defined(AVR_UNO_WIFI_R2)
#elif defined(ARDUINO_AVR_UNO_WIFI_REV2)
#include "SoftwareSerial.h"
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600
Expand Down
2 changes: 1 addition & 1 deletion examples/Soil_Humidity/Board.h
Expand Up @@ -12,7 +12,7 @@
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600

#elif defined(AVR_UNO_WIFI_R2)
#elif defined(ARDUINO_AVR_UNO_WIFI_REV2)
#include "SoftwareSerial.h"
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600
Expand Down
2 changes: 1 addition & 1 deletion examples/Template/Board.h
Expand Up @@ -12,7 +12,7 @@
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600

#elif defined(AVR_UNO_WIFI_R2)
#elif defined(ARDUINO_AVR_UNO_WIFI_REV2)
#include "SoftwareSerial.h"
SoftwareSerial atom_serial(8, 9);
#define HELIUM_BAUD_RATE helium_baud_b9600
Expand Down
4 changes: 2 additions & 2 deletions src/Helium.cpp
Expand Up @@ -52,7 +52,7 @@ Helium::Helium(HardwareSerial * serial)
helium_init(&_ctx, (void *)serial);
}

#if defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_AVR_PRO) || defined(CORE_TEENSY) || defined(AVR_UNO_WIFI_R2)
#if defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_AVR_PRO) || defined(CORE_TEENSY) || defined(ARDUINO_AVR_UNO_WIFI_REV2)
Helium::Helium(SoftwareSerial * serial)
{
helium_init(&_ctx, (void *)serial);
Expand All @@ -65,7 +65,7 @@ Helium::Helium(SoftwareSerial * serial)
int
Helium::begin(enum helium_baud baud)
{
#if defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_AVR_PRO) || defined(CORE_TEENSY) || defined(AVR_UNO_WIFI_R2)
#if defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_AVR_PRO) || defined(CORE_TEENSY) || defined(ARDUINO_AVR_UNO_WIFI_REV2)
SoftwareSerial * serial = (SoftwareSerial *)_ctx.param;
#else
HardwareSerial * serial = (HardwareSerial *)_ctx.param;
Expand Down
4 changes: 2 additions & 2 deletions src/Helium.h
Expand Up @@ -9,7 +9,7 @@
#include "Arduino.h"
#include "helium-client/helium-client.h"

#if defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_AVR_PRO) || defined(CORE_TEENSY) || defined(AVR_UNO_WIFI_R2)
#if defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_AVR_PRO) || defined(CORE_TEENSY) || defined(ARDUINO_AVR_UNO_WIFI_REV2)
#include <SoftwareSerial.h>
#endif

Expand All @@ -34,7 +34,7 @@ class Helium
*/
Helium(HardwareSerial * serial);

#if defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_AVR_PRO) || defined(CORE_TEENSY) || defined(AVR_UNO_WIFI_R2)
#if defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_AVR_PRO) || defined(CORE_TEENSY) || defined(ARDUINO_AVR_UNO_WIFI_REV2)
/** Create a Helium instance on a software serial port
*
* @note SoftwareSerial is only exposed for the Arduino UNO.
Expand Down

0 comments on commit 2f4c5d4

Please sign in to comment.