matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
707 stars 649 forks source link

#include "../lmic.h" to hal.h #81

Open m0rphex opened 7 years ago

m0rphex commented 7 years ago

I'm using PlatformIO, needed to include lmic.h in hal.h to get lmic_pinmap struct to work.

#include "../lmic.h"
#ifndef _hal_hal_h_
#define _hal_hal_h_

static const int NUM_DIO = 3;

struct lmic_pinmap {
  u1_t nss;
  u1_t rxtx;
  u1_t rst;
  u1_t dio[NUM_DIO];
};
matthijskooijman commented 7 years ago

Good point, I'll have a closer look later.

m0rphex commented 7 years ago

Keep up the good work, your lib is very useful!