0

Using RCLib (github) I'm getting this error. The trick is that the RCLib example works on it's own but does not work in my program (github).

Serial Output "Error"

Pin 0 (62) you are trying to use is not supporting interrupts
Pin 1 (63) you are trying to use is not supporting interrupts
Pin 2 (64) you are trying to use is not supporting interrupts
Pin 3 (65) you are trying to use is not supporting interrupts
Pin 4 (66) you are trying to use is not supporting interrupts
Pin 5 (67) you are trying to use is not supporting interrupts
2

It is quite right. Those pins aren't interrupt pins. What you want to do is make it use PinChange interrupt pins instead.

This can (by the look of things) be done by including the PinChangeInt.h library before including the RCLib library.

4
  • Does that make the Arduino use software interrupts instead of hardware interrupts?
    – Jacksonkr
    Aug 19 '16 at 15:27
  • No. That makes a different kind of hardware interrupt available to that library.
    – Majenko
    Aug 19 '16 at 15:28
  • Hmm, well I have NO idea how you came to this conclusion and the quickness at which you did it is disorienting. I'm sure much of it chalks up to experience but can I bother you to open my mind to your troubleshooting technique(s) ?
    – Jacksonkr
    Aug 19 '16 at 15:33
  • 3
    Simple: I looked at the source code for RCLib.h and found the bit where the error message is. Then I saw that it's wrapped in a test to see if PinChangeInt_h was defined (which is done by the PinChangeInt.h library) and that by including that library it will change the behaviour accordingly.
    – Majenko
    Aug 19 '16 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.