I nailed my problem pretty much down so I hope you guys can help me now because I think I've tried everything, you know how it is
Short Story
attachInterrupt(2, foo, FALLING) doesn't work on D0 like it should on Fio v3 based on this http://arduino.cc/de/Reference/AttachInterrupt and assuming Fio v3 ~ Leonardo. Whereas it works on UNO with 0 as argument on D2.
Long Story
What I'm trying to achieve is to make a MPR121 Sensor work with the Fio v3 based on this code:
I got it working with the UNO, so my next step was to check out the correct pins for the Fio v3, like SDA goes to D2, SCL on D3 etc. Here I referred to this Schematic:
The main question where I had to do some research was where to map the interrupt to because with the original code
attachInterrupt(0, foo, FALLING);
I'd need to hook it up to D2 which now is used as SDA - so just set it to a free one right?! No.
That's where I'm currently stuck, I adapted the above code to
attachInterrupt(2, foo, FALLING);
and connected the IRQ wire to RXI / D0 Pin on my Fio v3 but it's not working. Do you have any idea how to debug this or what I could've done wrong here?
That's how I came to the conclusion where to put the wires and what integer to set on attachInterrupt(). In the beginning I tried to do it like it's described for the Fio - A4 (SDA), A5 (SCL) and D2 (int1) for IRQ - it didn't work. Then I did the research, saw that pins are different but that also didn't help. That's why I'm here now