<?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>Convert a arduino code, what should i change, haptic feedback gloves</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66933/convert-a-arduino-code-what-should-i-change-haptic-feedback-gloves</link><description>This is a arduino code, but got to do it in nrf52840dk can you tell me what should i change , i have given code link and library https://github.com/AurekSkyclimber/DIY-Haptic-Glove https://github.com/tockn/MPU6050_tockn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Oct 2020 11:29:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66933/convert-a-arduino-code-what-should-i-change-haptic-feedback-gloves" /><item><title>RE: Convert a arduino code, what should i change, haptic feedback gloves</title><link>https://devzone.nordicsemi.com/thread/274284?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 11:29:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78fa363f-9aba-4f07-88a6-616b3db987b0</guid><dc:creator>Robin M Saltnes</dc:creator><description>&lt;p&gt;Hi Saver&lt;/p&gt;
&lt;p&gt;I suggest starting with learning how to use the nRF Connect SDK, and working your way outwards from there. Using the arduino code as a reference will be helpful, but just changing the includes, constants and function calls from this project will propably be more time-consuming and frustrating than actually helpful.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will need to change all the constants for pin-inputs and -outputs to the corresponding pins on the nRF52840, in addition you will need to change the function calls from calling the arduino libraries to calling the appropriate function from one of the Nordic SDK libraries you choose to include in your project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a link to the getting started guide for the nRF Connect SDK:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ncs52/UG/gsg/intro.html"&gt;Getting Started NCS&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a link to the documentation some of the different libraries in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_sdk%2Fstruct%2Fsdk_nrf5_latest.html"&gt;NCS Libraries&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Update:&lt;/em&gt; An NCS compatible driver for the MPU5060 could be found through the Zephyr project:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_MPU6050.html"&gt;MPU6050 Zephyr Driver&lt;/a&gt;. Learn more about using Zephyr with NCS here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/getting_started/index.html"&gt;Getting started with Zephyr&lt;/a&gt;&amp;nbsp;and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/application/index.html#application"&gt;Developing with Zephyr&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Robin.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>