[SOLVED]AdaFruit_LSM303 errors

I add

while(!Serial.available()) SPARK_WLAN_Loop();

to the code like so:

void setup(void) 
{
  Serial.begin(9600);
  while(!Serial.available()) SPARK_WLAN_Loop();
  Serial.println("Accelerometer Test"); Serial.println("");
  
  /* Initialise the sensor */
  if(!accel.begin())
  {
    /* There was a problem detecting the ADXL345 ... check your connections */
    Serial.println("Ooops, no LSM303 detected ... Check your wiring!");
    while(1);
  }
  
  /* Display some basic information on this sensor */
  displaySensorDetails();
}

So the core now connects and my laptop see’s it but pressing a key does nothing…

As you can no guess tell I am new to Spark and trying to learn how to use it before I dive in with my ideas.


I’ve edited your post to properly format the code. Please check out this post, so you know how to do this yourself in the future. Thanks in advance! ~Jordy