Pages: [1]   Go Down
Author Topic: UNO rev 3 and MEGA 2560 rev 3 sketch compatibility?  (Read 630 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 2
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are the UNO sketches/programming compatible with the MEGA boards? I have the Uno and would like to purchase the MEGA. However, i would like to transfer the UNO sketch exactly as it appears on the arduino IDE. Can i just upload the same sketch i have on the uno into the MEGA? Please excuse my newbish questions. 
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17263
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are the UNO sketches/programming compatible with the MEGA boards? I have the Uno and would like to purchase the MEGA. However, i would like to transfer the UNO sketch exactly as it appears on the arduino IDE. Can i just upload the same sketch i have on the uno into the MEGA? Please excuse my newbish questions. 

In almost all cases sketches written for a Uno board will run correctly on a Mega board without modificatoin. There are some infrequently used programming practices like using direct port I/O pin manipulations where the code won't operate on the same pins on the mega as on the Uno but they can be easily changed.

Going the other way can be harder as code written on a mega might be too large to fit in a Uno, or use more pins then a uno board has, or use more timers, etc.

Lefty
Logged

Pages: [1]   Go Up
Jump to: