<?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>nRF5340 I2C pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80957/nrf5340-i2c-pins</link><description>Greetings, 
 I&amp;#39;m trying to develop a project on the nRF5340 DK where I collect measurement data from an I2C sensor (LPS27HHW) before sending the data via bluetooth. My firts problem is that I don&amp;#39;t know here the I2C pins are on the board (SDA and SCL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Oct 2021 08:55:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80957/nrf5340-i2c-pins" /><item><title>RE: nRF5340 I2C pins</title><link>https://devzone.nordicsemi.com/thread/335425?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 08:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:394d9c16-da12-447a-9c39-4fb043315a26</guid><dc:creator>GunnerDx</dc:creator><description>&lt;p&gt;Thank you so much !! &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 I2C pins</title><link>https://devzone.nordicsemi.com/thread/335424?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 08:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:886d1660-047a-4778-bbbc-a69cfea00054</guid><dc:creator>picatostas</dc:creator><description>&lt;p&gt;When you init the twi driver you need to pass a nrfx_twim_config_t struct with the pins you want to use for the I2C.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    const nrfx_twim_config_t config = {
        .scl                = scl_pin,
        .sda                = sda_pin,
        .frequency          = freq,
        .interrupt_priority = APP_IRQ_PRIORITY_HIGH
    };

    err_code = nrfx_twim_init(&amp;amp;m_twi, &amp;amp;config, twi_handler, NULL);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;check the examples at &amp;#39;examples/peripheral/twi_sensor/main.c&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>