ADXL345 and arduino mega 1280

Hello,

I am using the ADXL345 accelerometer but works only with Arduino duemilanove. I never managed to run this sensor with Arduino mega1280. I am using the SPI approach (based on sparkfun online guides). Is there any difference in the pinout between duemilanove and mega1280?. Someone told me that the pins 13,12,11,10 of the duemilanove board are different on the mega 1280. I did not find any information on the internet. Please, if you have any idea... I prefer to use the mega1280 because of more pinouts (I want to connect at the same time LCD, ADXL345, Card reader, etc).

Thank you very much for your time.

P.

The SPI is on pins 50 (MISO), 51 (MOSI) and 52 (SCK) on the Mega. SS is theoretically on 53 but often software uses pin 10 (or another) directly so you may have to look at your library or sketch to decide that. Usually it's the easiest and most portable way to get the SPI on the ICSP header (6 pin connector on the opposite side of the USB connector on the board).