I’m working on reducing power consumption in my application using the LIS2DW12 sensor. I am currently turning off its LDO to cut power during low-power periods.
The problem is that when I power the sensor back on, it outputs only zeros. I understand this happens because the sensor loses its configuration when power is removed.
My question is:
-
What is the recommended way to reconfigure the LIS2DW12 at runtime after powering it back on?
-
Is there a best practice for retaining settings or initializing it dynamically in a Zephyr-based application?
I’m using the Zephyr sensor API for the LIS2DW12. Any guidance on runtime configuration after power cycling would be appreciated.