AnsweredAssumed Answered

MMA8452 use I2C connect to QN9080

Question asked by Wei-Min Hung on Dec 5, 2018
Latest reply on Dec 6, 2018 by Estephania Martinez

Hi,

 

I have a board that MMA8452 accelerometer use I2C connect to QN9080.

I want to use the sample code that provided in the QN908xcdx_driver_examples_i2c_read_accel_value_transfer to transfer x,y,z value on MMA8452 to QN9080.

 

In this sample code, I found that there is a who_am_i_reg that can get the slave Address and decide which accelerormeter can connect.

I'm not sure whether I'm correct.

 

And I want to ask that

1. Is that OK to use this sample for it?

1. How can I get the slave address ( MMA8452 )?

2. How can I add MMA8452Q to this sample code and get the accelerometer value from QN9080?

Outcomes