<?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>PWM driven LEDs on Thingy:52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69317/pwm-driven-leds-on-thingy-52</link><description>I&amp;#39;m trying to drive LEDs using PWM on Thingy:52 and Zephyr OS. It works when I connect external diodes to GPIOs, but built-in LEDs are connected to I/O expander instead. 
 Can someone point me how to drive I/O expander pin with PWM?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2020 12:20:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69317/pwm-driven-leds-on-thingy-52" /><item><title>RE: PWM driven LEDs on Thingy:52</title><link>https://devzone.nordicsemi.com/thread/285048?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 12:20:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:530d80b1-befd-4546-874c-16fa828e0ead</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;That is good news, I will consider this case resolved then &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM driven LEDs on Thingy:52</title><link>https://devzone.nordicsemi.com/thread/284892?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 20:54:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2515637-f0f6-46df-81bf-90ce865b86a4</guid><dc:creator>Grzegorz Blach</dc:creator><description>&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;This patch does the job. Thanks.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="zEswK"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM driven LEDs on Thingy:52</title><link>https://devzone.nordicsemi.com/thread/284814?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 14:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19e27d9e-bcd3-47c5-a84e-f79d07f3a08c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;When I started to look into this I realized the sx1509 library currently only allows for setting and clearing pins, not using the PWM functionality built into the sx1509 device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A pull request has been created to add this functionality, but it is not yet pulled into the Zephyr master branch:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/28060"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/28060&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is no exact date set for merging this PR, but according to the developer it should not be very far out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM driven LEDs on Thingy:52</title><link>https://devzone.nordicsemi.com/thread/284390?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 16:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f8ed3a8-c5d4-4c8f-be2a-3996f506aad9</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You would need to&amp;nbsp;control these pins through the SX1509 I/O expander.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;nbsp;is a library in Zephyr for SX1509, so it should be relatively straight forward to integrate this in your code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have time to test it today unfortunately, but I will set aside some time tomorrow to try it out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>