Skip to main content
Associate
Feb 10, 2026 7:30 AM UTC
Question

LIS2DW12 accelerometer Arduino

Hi  

 

I am looking for example code for the LIS2DW12 using Arduino code . I am using an Expressiff module esp32 C3 

Does anyone have some example code ?

4 replies

Federica Bossi
ST Technical Moderator
Feb 11, 2026 10:08 AM UTC

Hi @Pro-tec ,

Have a look at our official drivers on Github.

Hope this helps!

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Pro-tecAuthor
Associate
Feb 12, 2026 10:16 AM UTC

Hi

 

Not really .  I am looking for Tap examples for LIS2DW12 .

 

Best regards

 

Andrew Neil
Super User
Feb 12, 2026 10:24 AM UTC

This forum is mostly focussed on "traditional" development - not many Arduino users here.

You'd be better asking on the stm32duino or regular Arduino forums:

https://www.stm32duino.com/

https://forum.arduino.cc/c/other-hardware/196

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
KWine
Senior
Apr 17, 2026 3:50 PM UTC

These here are written for the STM32L4 but should be easily adapted to the ESP32.