Help with accelerometer, Sparkfun breakout MMA7260

In this sketch, it shows x,y,z pins as 3,2,1 respectively. Are those arduino digital pins 1, 2, and 3 ?

I have a Sparkfun triple axis accelerometer breakout - MMA7260Q
Need some help hooking it up to arduino

Thank you

// ADXL3xx
//
// Reads an Analog Devices ADXL3xx accelerometer and communicates the
// acceleration to the computer. The pins used are designed to be easily
// compatible with the breakout boards from Sparkfun, available from:
// Accelerometers - SparkFun Electronics
//
// http://www.arduino.cc/en/Tutorial/ADXL3xx

// Breakout Board Pinout
// 0: self test
// 1: z-axis
// 2: y-axis
// 3: x-axis
// 4: ground
// 5: vcc

int groundpin = 18; // analog input pin 4
int powerpin = 19; // analog input pin 5
int xpin = 3; // x-axis of the accelerometer
int ypin = 2; // y-axis
int zpin = 1; // z-axis (only on 3-axis models)

void setup()
{
Serial.begin(9600);

// Provide ground and power by using the analog inputs as normal
// digital pins. This makes it possible to directly connect the
// breakout board to the Arduino. If you use the normal 5V and
// GND pins on the Arduino, you can remove these lines.
pinMode(groundpin, OUTPUT);
pinMode(powerpin, OUTPUT);
digitalWrite(groundpin, LOW);
digitalWrite(powerpin, HIGH);
}

void loop()
{
Serial.print(analogRead(xpin));
Serial.print(" ");
Serial.print(analogRead(ypin));
Serial.print(" ");
Serial.print(analogRead(zpin));
Serial.println();
delay(1000);
}

Are those arduino digital pins 1, 2, and 3 ?

No, from the sketch, they're analogue pins.

You need analogue pins to read the analogue voltages from the accelerometer.

I'm a little worried that the comments in that sketch seem to describe powering the accelerometer with 5v. I'm pretty sure it needs 3.3v. 5v might not be good for its health.

Thank you, guys.
I'll check on the voltage ratings.

Good luck, have fun.

I have this exact part, actually (didn't realise mine was the same until after I posted, as Sparkfun do so many) - I'm running mine off 3v3, it seems to be correct. I didn't get further than "plug it in, read off some values" before being distracted by something else, but I will certainly go back to it!

Show us if you do something awesome with it.