Hi,
I made this changes in this board to access the shield board ( FRDM-STBC-AGM01 ) .Any mode change will require in that code ,or we have to keep as it .
Serial pc(USBTX, USBRX);
I2C i2c(PTE25, PTE24);
//FXOS8700Q fxos(i2c, FXOS8700CQ_SLAVE_ADDR1);
//FXOS8700QAccelerometer acc(i2c, FXOS8700CQ_SLAVE_ADDR1); // Configured for the FRDM-K64F with onboard sensors
//FXOS8700QMagnetometer mag(i2c, FXOS8700CQ_SLAVE_ADDR1);
FXOS8700QAccelerometer acc(i2c, FXOS8700CQ_SLAVE_ADDR0); //---- Configured for use with the FRDM-MULTI shield
FXOS8700QMagnetometer mag(i2c, FXOS8700CQ_SLAVE_ADDR0);
Regards
Mk
Hi mukesh prasa,
Yes, you just need to change the I2C address, now did you try to run it on your board, any function question?
If you still have problems, just let me know!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------