Code variations for ATmega328, 32u4, Mega256?

Post Reply
mwiidude
Posts: 19
Joined: Tue Apr 30, 2013 3:45 pm

Code variations for ATmega328, 32u4, Mega256?

Post by mwiidude »

I'm just starting to look into MultiWii, and the myriad of boards out there, and I have a few basic questions:

- Is the Arduino codebase (currently at 2.2?) completely portable, or are there distinct variants for the different MCU's that are implemented? Perhaps it uses declarations to define I/O lines based on the MCU in use?

- I assume that, putting aside physical size, a board based on the Mega256 is the best choice due to the vastly larger flash space available?

- Are there any simple sketches that demonstrate how to read and interpret each distinct sensor, ie: accelerometer, magnetometer, baro, GPS? (it occurs to me that these boards have uses far beyond multicopter...)



Thanks.

Post Reply