<?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>Porting Fastled library to nRF51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14685/porting-fastled-library-to-nrf51422</link><description>Hi all, 
 I am developing firmwares for the nRF51422 under Eclipse with the ARM GCC toolchain. 
 I have a matrix of WS2812 (or neopixel) RGB LEDs that I am controlling using the code available here . 
 However, I would like to use the FastLED library</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Oct 2017 22:16:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14685/porting-fastled-library-to-nrf51422" /><item><title>RE: Porting Fastled library to nRF51422</title><link>https://devzone.nordicsemi.com/thread/56051?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 22:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f672f71-243d-405a-8f07-6e71fc7cbab6</guid><dc:creator>Searay</dc:creator><description>&lt;p&gt;Hello. Did you ever get FastLED working on the nRF52?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting Fastled library to nRF51422</title><link>https://devzone.nordicsemi.com/thread/56050?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 17:36:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c112f8b4-a541-4085-94af-62aa3fd6afc3</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;So I redefined &lt;code&gt;delay()&lt;/code&gt; and &lt;code&gt;micros()&lt;/code&gt; using the method explained in &lt;a href="http://micromouseusa.com/?p=296"&gt;this&lt;/a&gt; post.
I also had to do add some includes for the &lt;code&gt;abs()&lt;/code&gt; and &lt;code&gt;pow()&lt;/code&gt; functions.
Now I get an error &lt;code&gt;impossible constraint in &amp;#39;asm&amp;#39;&lt;/code&gt; from the &lt;code&gt;M0_ASM_ARGS&lt;/code&gt; definition in &lt;strong&gt;m0clockless.h&lt;/strong&gt;.
Do you know what the problem can be?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting Fastled library to nRF51422</title><link>https://devzone.nordicsemi.com/thread/56049?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 10:58:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04e0792d-bfc2-4266-9c16-582a9c31bed3</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;After reviewing my makefile, it appears that the redefinition problem is a warning which was treated as an error.
However, now I have to redefine the function &lt;code&gt;micros()&lt;/code&gt; which is included in the function &lt;code&gt;delay()&lt;/code&gt; that you mentioned before. I also have to redefine &lt;code&gt;delayMicroseconds()&lt;/code&gt;. For  &lt;code&gt;delayMicroseconds()&lt;/code&gt;, I suppose I could use the function &lt;code&gt;nrf_delay_us()&lt;/code&gt; instead. For &lt;code&gt;micros()&lt;/code&gt;, it is a bit more tricky. I see that the definition is in wiring.cpp but is there a description of it somewhere?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting Fastled library to nRF51422</title><link>https://devzone.nordicsemi.com/thread/56048?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 14:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54dc3ae6-ef58-4e3c-a00b-090f0392c382</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;So I tried to include the FastLED library into a new Eclipse project.
I modified the standard makefile I have to support .cpp files but I might have done something wrong because I get now a redefinition error on FASTLED_HAS_CLOCKLESS between clockless_arm_nrf51.h and led_sysdefs_arm_nrf51.h.&lt;/p&gt;
&lt;p&gt;Do you know what I did wrong?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting Fastled library to nRF51422</title><link>https://devzone.nordicsemi.com/thread/56047?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2016 20:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ad29843-b1fa-4b88-aa70-0375948178e6</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Would you have by any chance an old makefile from your project on Eclipse?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting Fastled library to nRF51422</title><link>https://devzone.nordicsemi.com/thread/56046?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2016 19:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d25f280-6bc3-45f6-aba3-7fc9aa31cca8</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Thank you for your detailed answer.
I will try it and get back to you if I have some issues.
Best regards,
Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting Fastled library to nRF51422</title><link>https://devzone.nordicsemi.com/thread/56045?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2016 18:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b88ca8d-6740-4653-8cf4-ee78b89a99ea</guid><dc:creator>DGarcia / FastLED</dc:creator><description>&lt;p&gt;I actually developed the nrf51822 support directly inside of eclipse, outside of the arduino environment.  You should be able to use the library without wiring.  For the most part, the only thing FastLED uses the arduino libraries for is the pinMode method on platforms where I&amp;#39;m feeling too lazy to do direct port manipulation.  The only other thing is you might need to make sure there&amp;#39;s two methods:&lt;/p&gt;
&lt;p&gt;uint32_t millis(); // return the number of milliseconds since device startup (used by the frame rate limiter in the library and by the EVERY_N_MILLI* macros for timing/scheduling)&lt;/p&gt;
&lt;p&gt;void delay(uint32_t ms); // delay the given number of millis&lt;/p&gt;
&lt;p&gt;Even then, I&amp;#39;m not entirely sure that you&amp;#39;d need millis.&lt;/p&gt;
&lt;p&gt;After I finish up the RGBW/RGB16 work i&amp;#39;ll go back and do another round of trimming out any remaining arduino dependencies.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>