Adressing missing Mega2560 pins through the Arduino IDE

Hello!
The Mega2560 has a few pins not broken out on the Mega boards, i have put a Mega2560 on a bare board and the missing pins are broken out on mine.

How can i access the pins?
In perticular there are two Pins in perticular i would like to acress though the wrapper, external interrupt 6 and 7.

Greetings,
Peter

You should create your own boards definition and a variants file to define the extra pins. The procedures vary depending on which IDE version you are using.

A pins_arduino.h has been posted before that brings out all the Mega2560 pins.
I have it on another computer. Try searching for it in the forum, I will see if I can attach it when I catch up to the other computer.

Here's the file I was referring to that breaks out all the Mega2560 pins.

I put this in a /variants/allmega folder.

I added this to boards.txt

##############################################################

allmega2560.name=Mega 2560 with all pins broken out

allmega2560.upload.protocol=wiring
allmega2560.upload.maximum_size=258048
allmega2560.upload.speed=115200

allmega2560.bootloader.low_fuses=0xFF
allmega2560.bootloader.high_fuses=0xD8
allmega2560.bootloader.extended_fuses=0xFD
allmega2560.bootloader.path=stk500v2
allmega2560.bootloader.file=stk500boot_v2_mega2560.hex
allmega2560.bootloader.unlock_bits=0x3F
allmega2560.bootloader.lock_bits=0x0F

allmega2560.build.mcu=atmega2560
allmega2560.build.f_cpu=16000000L
allmega2560.build.core=arduino
allmega2560.build.variant=allmega

Closed the IDE (1.0.6), restarted it, selected "Mega 2560 with all pins broken out" as the board type, opened blink and compiled to make sure nothing was too screwed up.

pins_arduino.h (13 KB)