Pages: [1]   Go Down
Author Topic: Interrupts for the Arduino Leonardo and clones  (Read 2572 times)
0 Members and 1 Guest are viewing this topic.
Germany
Offline Offline
Full Member
***
Karma: 10
Posts: 221
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

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.

Markus

* pins_arduino.h (6.66 KB - downloaded 58 times.)
* Arduino.h (5.61 KB - downloaded 48 times.)
* WInterrupts.c (8.65 KB - downloaded 48 times.)
* wiring_private.h (1.71 KB - downloaded 43 times.)
« Last Edit: March 13, 2012, 05:02:00 am by Markus_L811 » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

deleted, a bug in arscons made me think my mega wasn't working properly. it is.
« Last Edit: March 13, 2012, 02:08:04 pm by strictlyrude27 » Logged

Pages: [1]   Go Up
Jump to: