This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EK-TM4C123GXL: Reading from an I2C Device without knowing a registry address

Part Number: EK-TM4C123GXL
Other Parts Discussed in Thread: ENERGIA

I have a bend sensor that I want to be able to read data from.  While I have the I2C address of the device, based off examples I have read online, I will also need a registry address for the data.  As far as I know, I don't have that registry address information either from manufacturer or on hand.

Now, I know I can read from the device using the Energia IDE (that method only needed the I2C device address) and have verified this.  However, I want to be able to use the CCS as the main IDE as this is more inline with what my lab is doing.

Is there a way to do this with just the I2C device address with CCS?  Is there a step that I missed?  What is Energia IDE doing different that allows it just to use the I2C device address (if people have some insight)?

  • Hello Carlo,

    Generally with I2C you are reading data from some sort of register, but it might be your sensor doesn't have a specific register mapping and it just expect you to read data from 0x0000 and onwards. That could be what Energia is doing, but I have no Energia experience so I can't really comment on that element.

    The sensor should have some sort of datasheet though if you can get ahold of that it should be able to explain how to read from it. 

    Best Regards,

    Ralph Jacobi