Arduino MEGA and I2C


I just got Arduino MEGA. What I am wondering is that does it support I2C in hardware (pins SDA, SCL suggest that) or do I still need to use Wire library? Is it so that Wire libary is intelligent enough to use I2C hardware on MEGA but uses bit banging on Arduino Duemilove?

Sorry for stupid question....

Best Regards Kari

I2C on the Duemilanove is not bit-banged, it uses hardware.

Thanks, This set me straight.


As stated the Arduino I2C library is supported by the Mega board. However you need to be aware that different pin numbers are used for I2C on the mega, pins 20 and 21 for data and clock signals respectifully.