<?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 disable the ADXL362 accelerometer on the thingy91</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58312/how-to-disable-the-adxl362-accelerometer-on-the-thingy91</link><description>Hi, 
 
 I&amp;#39;ve used the ADXL362 sensor sample code in the zephyr folder to get the low power accelerometer sensor working on the the thingy91. It triggers on motion and I can print out the xyz values. but I cant figure out how to shut it down so I can turn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Mar 2020 10:48:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58312/how-to-disable-the-adxl362-accelerometer-on-the-thingy91" /><item><title>RE: how to disable the ADXL362 accelerometer on the thingy91</title><link>https://devzone.nordicsemi.com/thread/239305?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 10:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b5ec4ba-4538-4588-a71d-83d962c720b5</guid><dc:creator>Sigurd</dc:creator><description>[quote user="AndrewR"]If I did do something like this, since I would be changing the driver code wouldn&amp;#39;t it get overwritten when I do an NCS update?[/quote]
&lt;p&gt;&amp;nbsp;You would likely get a merge conflict that you then need to resolve. git has the functionality to help you handle that.&lt;/p&gt;
&lt;p&gt;If you have made changes you think&amp;nbsp;other Zephyr users might find useful, please feel free to&amp;nbsp;submit a patch to upstream Zephyr. See &lt;a href="https://docs.zephyrproject.org/latest/contribute/index.html"&gt;this link&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to disable the ADXL362 accelerometer on the thingy91</title><link>https://devzone.nordicsemi.com/thread/238140?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 19:44:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bb9bf48-0ad7-4252-b332-528255dd38b1</guid><dc:creator>AndrewR</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure how I would do that. If I did do something like this, since I would be changing the driver code wouldn&amp;#39;t it get overwritten when I do an NCS update?&lt;/p&gt;
&lt;p&gt;I did implement a flag and a test in the trigger handler itself. I flip the flag back and forth as if I am disabling it. Not power efficient but it works. At some point Ill test how much more power the Accel motion trigger draws. If you know how much that might be It would save me some time and Id appreciate it. If you don&amp;#39;t know but you&amp;#39;d like to know I can provide the code I have for power testing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to disable the ADXL362 accelerometer on the thingy91</title><link>https://devzone.nordicsemi.com/thread/237534?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 16:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5438ff8b-0d7a-4b03-8053-2407eaaa53c8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The sensor API in Zephyr does not seem to have this disable functionality implemented. Maybe you could try to implement a function in adxl362_trigger.c or adxl362.c that e.g. write to the INTMAP1 register in order to disable the interrupt ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>