1

I am using the EnableInterrupt library, infact the only library that I can find that allows me to use six interrupts to wake the Arduino. However when I use it with the LMIC library (Matthijs Kooijman ) the "Forward uplink data message" is not sent during initial registration, only if #include <EnableInterrupt.h> is commented out does it work. I am using a RFM95 with the following LMIC pin assignments:

const lmic_pinmap lmic_pins = { .nss = 10, .rxtx = LMIC_UNUSED_PIN, .rst = 9, .dio = {3, 8, LMIC_UNUSED_PIN}, };

This must be something to do with the library sharing ISRs. Could somebody point to which parts of the LMIC library so as not to have this conflict?

I have tried swapping 8 for A5 and it again only works when the line is commented. Any help would be greatly appreciated.

asked Jul 21, 2021 at 22:41
1
  • I have managed to get it to work by specifying #define EI_NOTPORTD however it does not work with #define EI_ARDUINO_INTERRUPTED_PIN which is needed for my project to function. Commented Jul 21, 2021 at 23:43

1 Answer 1

1

This is the best I can get to work with 6 available pin change interrupts - just enough!

#define EI_ARDUINO_INTERRUPTED_PIN
#define EI_NOTPORTB // DISABLE FOR LMIC
#define EI_NOTPORTD // DISABLE FOR LMIC
answered Jul 22, 2021 at 0:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.