Hi! I have a pair of shiny new spark cores and really like the system but am having a little trouble with them. I am trying to interface with an MMA8452 accelerometer using I2C and the relevant library available in the online IDE (MMA8452-Accelerometer-Library-Spark-Core). No matter what I do, I seem to get stuck with a ‘breathing’ cyan LED and the spark going offline. From there I have to factory reset it and set the thing up with the wifi network again. It seems to happen after instantiating an MMA8452Q object (calling it “accel”), around the point of making an accel.init(SCALE_2G, ODR_800) call.
I have searched the forums and haven’t managed to find a solution, is it possible that something isn’t finishing in the I2C code and blocking the loop() from maintaining the connection to the IDE/cloud?
I would be happy to provide more information but am not sure exactly what would be relevant. Any help would be appreciated, cheers!