Which is the I2C Library?

Which is the I2C library for the spark core? I´ve read that it was the sparkWire… but I didn´t see in the Web IDE

@sparklingdevil, Is this you are looking for?


https://github.com/spark/core-firmware/blob/master/src/spark_wiring_i2c.cpp

To use it in your application, you can directly use

Wire.beginTransmission
Wire.write
Wire.read
Wire.endTransmission

etc…

ok, perfect. Many thanks people!

Just a quick warning… The I2C library has a 32 byte buffer by default. If you want to do larger transactions you will need to break up your communications.