Ok, Here is the simple code you refering too.
That does not look anything like the code I looked at. The Arduino library link on the polulo site takes you to GitHub - pololu/l3g-arduino: Arduino library for Pololu L3G4200D and L3GD20 boards. The ZIP link on the page will download a zip file, containing a library. The library comes with an example that looks like:
#include <Wire.h>
#include <L3G.h>
L3G gyro;
void setup() {
Serial.begin(9600);
Wire.begin();
if (!gyro.init())
{
Serial.println("Failed to autodetect gyro type!");
while (1);
}
gyro.enableDefault();
}
void loop() {
gyro.read();
Serial.print("G ");
Serial.print("X: ");
Serial.print((int)gyro.g.x);
Serial.print(" Y: ");
Serial.print((int)gyro.g.y);
Serial.print(" Z: ");
Serial.println((int)gyro.g.z);
delay(100);
}
Now, that looks pretty simple to me.