Skip to content

Interrupts problem #1

Description

@wifixcort

Hi, first of all thanks for sharing this amazing library 👍 . Now I have a little problem with it, I use it in an arduino nano v3.0. The pin 2 is used for an interrupt that's ok. But if I try use other interrupts for example in pin 3 I have a problem my arduino IDE says me this:

core.a(WInterrupts.c.o): In function __vector_2': /home/ricardo/.AIDE/arduino-1.0.6/hardware/arduino/cores/arduino/WInterrupts.c:314: multiple definition of__vector_1'
UsbMouse-master/usbdrvasm.S.o:(.text+0x32): first defined here

Do you know how can I solve this problem?

See this easy example

include "UsbMouse.h"

void setup(){attachInterrupt(1, dmpDataReady, RISING);}
void loop(){}
void dmpDataReady() {}

This thing does not work, but if you just comment #include "UsbMouse.h" it complie perfect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions