Skip to main content
Visitor II
August 15, 2018
Question

LIS2DW12 resource request

  • August 15, 2018
  • 2 replies
  • 613 views

I am wondering if you could provide any sample code for testing the LIS2DW12 on Arduino if you have any? Thanks!

    This topic has been closed for replies.

    2 replies

    August 16, 2018

    Hello,

    It seems that Avnet published some code on GIthub. Not for Arduino, probably some demonstration board, but seems to have the register mapping and functionality. Since it is written in C, it should be easily portable.

    https://github.com/Avnet/M18QxIotMonitor/blob/master/lis2dw12.c

    David

    ST Employee
    August 16, 2018

    ST provides PID (Platform Independent Drivers) on GitHub

    https://github.com/STMicroelectronics/STMems_Standard_C_drivers

    It can be ported to Arduino.