Can't get MMA8452Q 3 axis accelerometer working

I just got myself a MMA8452Q 3 axis accelerometer to play with.

I’ve hooked it up to my arduino like so,replacing the 330 ohm resistors with 220 instead

Hardware hookup:
Arduino --------------- MMA8452Q Breakout
3.3V --------------- 3.3V
GND --------------- GND
SDA (A4) --/330 Ohm/-- SDA
SCL (A5) --/330 Ohm/-- SCL

using the code as shown below(I downloaded the code)

    #include <Wire.h> // Must include Wire library for I2C
    #include <SFE_MMA8452Q.h> // Includes the SFE_MMA8452Q library
    // Begin using the library by creating an instance of the MMA8452Q
    //  class. We'll call it "accel". That's what we'll reference from
    //  here on out.
    MMA8452Q accel;
    // The setup function simply starts serial and initializes the
    //  accelerometer.
    void setup()
      Serial.println("MMA8452Q Test Code!");
      // Choose your adventure! There are a few options when it comes
      // to initializing the MMA8452Q:
      //  1. Default init. This will set the accelerometer up
      //     with a full-scale range of +/-2g, and an output data rate
      //     of 800 Hz (fastest).
      //  2. Initialize with FULL-SCALE setting. You can set the scale
      //     using either SCALE_2G, SCALE_4G, or SCALE_8G as the value.
      //     That'll set the scale to +/-2g, 4g, or 8g respectively.
      //accel.init(SCALE_4G); // Uncomment this out if you'd like
      //  3. Initialize with FULL-SCALE and DATA RATE setting. If you
      //     want control over how fast your accelerometer produces
      //     data use one of the following options in the second param:
      //     ODR_800, ODR_400, ODR_200, ODR_100, ODR_50, ODR_12,
      //     ODR_6, or ODR_1. 
      //     Sets to 800, 400, 200, 100, 50, 12.5, 6.25, or 1.56 Hz.
      //accel.init(SCALE_8G, ODR_6);
    // The loop function will simply check for new data from the
    //  accelerometer and print it out if it's available.
    void loop()
      // Use the accel.available() function to wait for new data
      //  from the accelerometer.
      if (accel.available())
        // First, use to read the new variables:;
        // will update two sets of variables. 
        // * int's x, y, and z will store the signed 12-bit values 
        //   read out of the accelerometer.
        // * floats cx, cy, and cz will store the calculated 
        //   acceleration from those 12-bit values. These variables 
        //   are in units of g's.
        // Check the two function declarations below for an example
        // of how to use these variables.
        //printAccels(); // Uncomment to print digital readings
        // The library also supports the portrait/landscape detection
        //  of the MMA8452Q. Check out this function declaration for
        //  an example of how to use that.
        Serial.println(); // Print new line every time.
    // The function demonstrates how to use the accel.x, accel.y and
    //  accel.z variables.
    // Before using these variables you must call the
    //  function!
    void printAccels()
      Serial.print(accel.x, 3);
      Serial.print(accel.y, 3);
      Serial.print(accel.z, 3);
    // This function demonstrates how to use the,,
    //  and variables.
    // Before using these variables you must call the
    //  function!
    void printCalculatedAccels()
      Serial.print(, 3);
      Serial.print(, 3);
      Serial.print(, 3);
    // This function demonstrates how to use the accel.readPL()
    // function, which reads the portrait/landscape status of the
    // sensor.
    void printOrientation()
      // accel.readPL() will return a byte containing information
      // about the orientation of the sensor. It will be either
      // LOCKOUT.
      byte pl = accel.readPL();
      switch (pl)
      case PORTRAIT_U:
        Serial.print("Portrait Up");
      case PORTRAIT_D:
        Serial.print("Portrait Down");
      case LANDSCAPE_R:
        Serial.print("Landscape Right");
      case LANDSCAPE_L:
        Serial.print("Landscape Left");
      case LOCKOUT:

Currently, whenever i try to run the sketch, all i get on the serial monitor is the phrase

MMA8452Q Test Code!

and nothing else happens, no reading no values, nothing at all.

I’ve tried using a multimeter to see what’s happening, and when i placed the probes of the multimeter across the resistor, i get nothing at all.Voltage, and current returns 0, and i have no idea what’s going wrong and why am i getting a 0 across the resistor.

Have i shorted out my accelerometer by using a 220 ohm resistor or is it a problem with my wiring and/or connections?

P.S i’ve tried using 560 ohm resistors on both 3.3v and 5 v but nothing seems to happen as well

EDIT: It’s mysteriously started working now, after i removed and re-connected the USB cable(even though i did it many times prior). However, the readings are freezing after some arbitraty amount of time has passed…it could be a minute, 3 minutes or never at all… O_O

Shouldn’t those resistors be pull-up resistors? Between the pins and +5? I’ve never heard of using series resistors on I2C.