Go Down

Topic: Interrupts for the Arduino Leonardo and clones (Read 3715 times) previous topic - next topic


Mar 12, 2012, 08:42 am Last Edit: Mar 13, 2012, 11:02 am by Markus_L811 Reason: 1

I used the vinciDuino in the Arduino IDE 1.0, so the original Leonardo isn't in stock, the IDE didn't support the Board completly (it's not nessesary at this piont).

I have integrated the PCINT und Interrupt (attachinterrupt, detachinterrupt) functionality in the files from the IDE, fm did me a great favor and look with me at the result, so here are the edited files.

Interrupts are on D0 to D3 and D7.

Some difference to the Atmel 328p, only the Pins D8 to D11 and D14 to D17 (SPI) have PCINT support.

"pins_arduino.h" from the folder "arduino-1.0\hardware\arduino\variants\leonardo"

And Arduino.h, WInterrupts.c and wiring_private.h from the folder "arduino-1.0\hardware\arduino\cores\arduino"

Have fun with it, if something wrong let me know.



Mar 13, 2012, 08:10 am Last Edit: Mar 13, 2012, 08:08 pm by strictlyrude27 Reason: 1
deleted, a bug in arscons made me think my mega wasn't working properly. it is.

Go Up