AnsweredAssumed Answered

FXLS8471Q i2c communication sample

Question asked by Piotr Rosenbaum on May 23, 2016
Latest reply on May 26, 2016 by Tomas Vaverka

Hi !

I Can't communicate with FXLS8471Q via i2c. I want to read WHO_I_AM register but device don't respond.

After read who value is 255. Can You show me a example code how to read it ?


#define FXLS8471Q_SLAVE_ADDR       0x1E 
#define FXLS8471Q_WHOAMI     0x0D




void FXLS_init(void) {

    uint8_t who;

    Soft_I2C1_send_data(FXLS8471Q_WHOAMI, END);

    Soft_I2C1_send_data(0x00, END);

    who = Soft_I2C1_read_data(END);