Arduino Uno -> MEGA library convertor?

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
SlowSteve
 
Posts: 24
Joined: Mon Mar 03, 2014 11:06 am

Arduino Uno -> MEGA library convertor?

Post by SlowSteve »

Hi all.

I'm moving from using an Uno to a Mega 2560 for a project as I need more RAM. I'm using a number of libraries, all of which are Uno-orientated.

As the Mega has all the same functions as the Uno, along with a lot more, is there either a tool or a pattern available to remap a series of libraries to hand things like different pin-outs etc?

Many thanks

Steve

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: Arduino Uno -> MEGA library convertor?

Post by adafruit_support_bill »

That depends on the library. Many libraries require no changes. Many others already have built-in MEGA support. There is a compile-time symbol that identifies the processor type, so sections of code can be conditionally compiled.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”