<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to CONFIG ST Module LIS2DE12?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74350/how-to-config-st-module-lis2de12</link><description>I am trying to include software support for the ST LIS2DE12 accelerometer chip which is found in V1.5.0/zephyr/modules/kconfig.st as 
 config USE_STDC_LISDE12 
 bool 
 V1.5.0/zephyr/moduleskconfig states &amp;quot;&amp;quot;comment &amp;quot;Unavailable modules, please install</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Apr 2021 12:02:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74350/how-to-config-st-module-lis2de12" /><item><title>RE: How to CONFIG ST Module LIS2DE12?</title><link>https://devzone.nordicsemi.com/thread/306785?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 12:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80650e1e-a537-412e-a0cd-8df4da64e534</guid><dc:creator>rhackl</dc:creator><description>&lt;p&gt;Thank You Simon,&lt;/p&gt;
&lt;p&gt;The lis2dh appears to be very similar to the lis2de. I will let you know how it goes.&lt;/p&gt;
&lt;p&gt;Rich&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to CONFIG ST Module LIS2DE12?</title><link>https://devzone.nordicsemi.com/thread/306757?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 10:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c0197b1-e618-4f02-8051-8423aec719d8</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I could not find any samples or drivers for the sensor LIS2DE12, however I found a &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v2.4.99-ncs2/drivers/sensor/lis2ds12"&gt;driver for the sensor LIS2DS12&lt;/a&gt;. I&amp;#39;m not sure how much difference there is between this sensor and the LIS2DE12, so you may have to modify the driver a little.&lt;/p&gt;
&lt;p&gt;I could not find any samples for the LIS2DS12,&amp;nbsp;Take a look at the sample zephyr/sample/sensor/lis2dh for guidance how to use the driver in your sample. I provided some bulletpoints below and referred to the LIS2DH sample for reference.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Include&amp;nbsp;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;drivers/sensor.h&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/sensor/lis2dh/src/main.c"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/sensor/lis2dh/src/main.c&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run &lt;span&gt;device_get_binding&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;DT_LABEL&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;DT_INST&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, st_lis2ds12)))&lt;/span&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/sensor/lis2dh/src/main.c#L53"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/sensor/lis2dh/src/main.c#L53&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Set &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/a9423cbce69a5df78140a2cf3ba11aa56d395cfc/drivers/sensor/CMakeLists.txt#L40"&gt;CONFIG_LIS2DS12&lt;/a&gt;&lt;span&gt;&amp;nbsp;in the prj.conf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/sensor/lis2dh/prj.conf#L4"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/sensor/lis2dh/prj.conf#L4&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;You also have to add an overlay file to the sample to configure the hardware, take a look at this&amp;nbsp;guide&amp;nbsp;to get an idea how to go about that:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/b/archives/posts/nrf-connect-sdk-tutorial---part-3-temporary#h79sk0f70607qwcyitkx2xn61bmh9mo"&gt;https://devzone.nordicsemi.com/nordic/b/archives/posts/nrf-connect-sdk-tutorial---part-3-temporary#h79sk0f70607qwcyitkx2xn61bmh9mo&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>