<?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>Need help in programming the PCA9956B...Using I2C  on PCA10040 board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62869/need-help-in-programming-the-pca9956b-using-i2c-on-pca10040-board</link><description>I am a beginner in I2C need help to program this LED driver(PCA9956B). If you have any sample code that will be much better.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 13:52:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62869/need-help-in-programming-the-pca9956b-using-i2c-on-pca10040-board" /><item><title>RE: Need help in programming the PCA9956B...Using I2C  on PCA10040 board</title><link>https://devzone.nordicsemi.com/thread/256218?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 13:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345b27be-7aba-49dc-bf19-420ff514cf33</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;br /&gt;&lt;br /&gt;Oh, my apologies, I was unsure due to the dots following your comment.&lt;br /&gt;No problem at all, I am happy to hear that you found my answer useful, and I hope that by following the directions I gave you, will provide you with the results you were looking for.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in programming the PCA9956B...Using I2C  on PCA10040 board</title><link>https://devzone.nordicsemi.com/thread/256207?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 13:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54fca521-d819-453c-a7a8-ec611db32877</guid><dc:creator>GeekAD</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;I am actually thanking you for a brief explanation. If anything required I&amp;#39;ll ask...&lt;/p&gt;
&lt;p&gt;Thanks, Again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in programming the PCA9956B...Using I2C  on PCA10040 board</title><link>https://devzone.nordicsemi.com/thread/256203?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 13:28:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:288e78a8-9330-4ffc-b147-cf0b99f6a70b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;br /&gt;&lt;br /&gt;I am not sure I understand you correctly. Is there something that is still unclear, that you would like help with?&lt;br /&gt;If so, please do not hesitate to ask!&lt;br /&gt;&lt;br /&gt;In the case that I have misunderstood your reply and you are just saying thank you for the explanation: No problem at all, I am happy to help!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in programming the PCA9956B...Using I2C  on PCA10040 board</title><link>https://devzone.nordicsemi.com/thread/256195?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 13:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60329443-7f8b-4995-9167-74972db38c8e</guid><dc:creator>GeekAD</dc:creator><description>&lt;p&gt;Thank You for explaining that simple.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in programming the PCA9956B...Using I2C  on PCA10040 board</title><link>https://devzone.nordicsemi.com/thread/256165?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 11:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3d0e328-876c-4c67-9673-93c9fb02adbb</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;To see that you device is wired correctly, and able to communicate with the sensor, you may program it with the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/twi_scanner_example.html"&gt;TWI Scanner example&lt;/a&gt;&amp;nbsp;to see that it is working - just follow the example&amp;#39;s documentation, and see that the LED driver shows up in the nRF52832&amp;#39;s Logs.&lt;br /&gt;When that is confirmed, you may look at the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/twi_sensor_example.html"&gt;TWI Sensor example&lt;/a&gt; to see how you may conduct the TWI communication. The example demonstrates how you can interface a senor by reading and writing to it - much like you will be doing with the LED driver.&lt;br /&gt;&lt;br /&gt;To see how you may structure your TWI driver in a good way you may take a look at the structure of the lis2dh12 TWI sensor interface, that you can find in&amp;nbsp;&lt;em&gt;/components/drivers_ext/lis2dh12&lt;/em&gt;.&lt;br /&gt;You will have to find the registers addresses / TWI interface from the LED drivers datasheet. Alternatively, you could look into public github repositories that might have implemented the TWI driver for the PCA9956B LED driver. &lt;a href="https://github.com/MikroElektronika/Knob_G_click/blob/master/library/__knobg_driver.c"&gt;A brief search yielded this repository&lt;/a&gt;&amp;nbsp;which seems to do just that, among some other things - thought I have not looked closer into it.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>