<?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>LP55231 LED DRIVER EXAMPLE CODE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67400/lp55231-led-driver-example-code</link><description>Hi! I&amp;#39;m currently working with nrf52840, and I want to drive LEDs using LP55231. Is there any library or example code that I can use?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Oct 2020 12:54:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67400/lp55231-led-driver-example-code" /><item><title>RE: LP55231 LED DRIVER EXAMPLE CODE</title><link>https://devzone.nordicsemi.com/thread/276450?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 12:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1fc4323-5f97-422d-8004-a2f6a440879d</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;No, we do not have an example for this specific device. I also looked around DevZone but the only thing I could find was this 6 year old ticket ( &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/2587/twi-issue"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/2587/twi-issue&lt;/a&gt;) and this 4 year old ticket (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/13852/how-do-i-recover-from-a-failed-i2c-write"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/13852/how-do-i-recover-from-a-failed-i2c-write&lt;/a&gt;) where&amp;nbsp;both users were trying to connect the LP55231 to an nRF51822.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It looks like the&amp;nbsp;LP55231 has an I2C-compatible control interface, so that would be your best bet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/twi.html?resultof=%22%74%77%69%22%20"&gt;TWI peripheral&lt;/a&gt; on the nRF52840 which is I2C compatible, and the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrfx__twi.html"&gt;TWI driver&lt;/a&gt; available in nRF5 SDK.&lt;/p&gt;
&lt;p&gt;Or if you wanted to use NCS we have an &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/i2c.html"&gt;I2C driver&lt;/a&gt; available there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>