This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

lpi2c_read_fxls896x_accel_value_transfer

Overview

The lpi2c_read_fxls896x_accel_value example shows how to use LPI2C driver to communicate with an lpi2c device:

  1. How to use the lpi2c driver to read a lpi2c device who_am_I register.

  2. How to use the lpi2c driver to write/read the device registers.

In this example, the values of three-axis accelerometer print to the serial terminal on PC through the virtual serial port on board.

Supported Boards