FAQ: How can I disable I2C of LIS2DH12

Document created by Online Support Moderator on 26-Dec-2016Last modified by Online Support Moderator on 26-Dec-2016
Version 2Show Document
  • View in full screen mode

Q:

I would like to disable I2C mode. Is there a configuration bit to do that, similar to some of your other MEMS parts? 

 

A:

To disable I2C after SPI communication is established set register 0x17, bit 7 to 1:

   a = read(0x17);

   write(0x17, (0x80 OR a));

 

 

(extracted from ST Online Support Service)

Attachments

    Outcomes