MPU-9150 and BMP085 example codes compatibility with Arduino Mega 2560 ????

Hi,

i am new to arduino projects. After learning basics of arduino programming and doing some basic practicals with arduino, now i am thinking to learn sensor interfacing with arduino. for this purpose, i want to interface MPU-9150 IMU and BMP085 with arduino and read orientation, pressure and altitude data. For this purpose i have googled some example codes:

[u]MPU-9150:[/u]

http://playground.arduino.cc/Main/MPU-9150#.UwuZneOSxIc

https://github.com/sparkfun/MPU-9150_Breakout/blob/master/firmware/MPU6050/Examples/MPU9150_raw/MPU9150_raw.ino

[u]BMP085:[/u]

http://bildr.org/2011/06/bmp085-arduino/

i have decided to purchase arduino mega 2560 for this project, but i m not sure either these codes will work with arduino mega 2560 or they are made for other arduino boards. as i have already said that i am new to arduino stuff and have not used them before, so kindly tell me either these codes will work with arduino mega 2560 or i need another arduino that are compatible with these codes?

Regards Zeeshan Haider

I don't see anything in either code that would preclude using the code on a Mega.