Skip to main content
JW.3
Visitor II
Aug 15, 2018 20:13 UTC
Question

LIS2DW12 resource request

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

Aug 16, 2018 07:41 UTC

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
Aug 16, 2018 11:46 UTC

ST provides PID (Platform Independent Drivers) on GitHub

https://github.com/STMicroelectronics/STMems_Standard_C_drivers

It can be ported to Arduino.