I2C Sensor Connections with AT&T Cellular Kits

Solved
Berktom25's picture
Berktom25
Junior(0)

There are many Industrial sensors which are easily compatible with IoT development boards, I am curious to interface I2C based USB Relay controllers  with AT&T cellular IoT starter board

Any reference Library and documentation to install I2C libraries will be appreciated

jflynn129's picture
jflynn129
Moderator(2)

In the sample code that is provided with the AT&T cellular IoT starter kit, it uses the Mbed OS which contains I2C support.  The Ssample code interacts with several I2C devices and demonstrates how it is done, example:

// I2C bus (SDA, SCL) definition
I2C i2c(PTC11, PTC10);

i2c.write(slaveAddress, &data, 1, 1);
i2c.read(slaveAddress, &data, 1, 0);

Not really sure what your question is.

 

jflynn129's picture
jflynn129
Moderator(2)

No further responses.