<?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 TWI in NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15232/how-to-config-twi-in-nrf52832</link><description>I have a hard time to initial a twi ,I reference the example in the SDK11.0，and I used the board is 10040,I copy the example twi sensor code in my project ,but there is an error when i build it:
my code is :
const nrf_drv_twi_t m_twi_mma_7660 = NRF_DRV_TWI_INSTANCE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jul 2016 07:28:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15232/how-to-config-twi-in-nrf52832" /><item><title>RE: how to config TWI in NRF52832</title><link>https://devzone.nordicsemi.com/thread/58169?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2016 07:28:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74e615f8-d793-4a7d-b179-e8ea3bc11638</guid><dc:creator>Quinn</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You open &amp;quot;nrf_drv_config.h&amp;quot; file in your project. Next, you find this line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; #define TWI0_ENABLED 0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And change it to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; #define TWI0_ENABLED 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Good luck!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>