<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Ws2811 10×10 panel - Arduino				            </title>
            <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 09 Jun 2026 02:41:10 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3789</link>
                        <pubDate>Wed, 10 Nov 2021 18:14:14 +0000</pubDate>
                        <description><![CDATA[Ok 👍.  Thank you so much Hans.]]></description>
                        <content:encoded><![CDATA[<p>Ok 👍.  Thank you so much Hans. </p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>darek</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3789</guid>
                    </item>
				                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3788</link>
                        <pubDate>Wed, 10 Nov 2021 13:11:52 +0000</pubDate>
                        <description><![CDATA[Hi Darek,
if I recall correctly, tinker with these lines:
for(int i = 0; i &lt; NUM_LEDS+NUM_LEDS; i++) {
 
Change &quot;NUM_LEDS+NUM_LEDS&quot; to just &quot;NUM_LEDS&quot;.It&#039;s been a while that I&#039;ve tink...]]></description>
                        <content:encoded><![CDATA[<p>Hi Darek,</p>
<p>if I recall correctly, tinker with these lines:</p>
<pre contenteditable="false">for(int i = 0; i &lt; NUM_LEDS+NUM_LEDS; i++) {</pre>
<p> </p>
<p>Change "NUM_LEDS+NUM_LEDS" to just "NUM_LEDS".<br />It's been a while that I've tinkered with it though. 😊 </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3788</guid>
                    </item>
				                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3784</link>
                        <pubDate>Mon, 08 Nov 2021 12:53:37 +0000</pubDate>
                        <description><![CDATA[Thank you Hans for your answer.  I will try it those codes how they will cooperate together.  
I&#039;ve got another question about meteor effect. Where about we must change this code to new met...]]></description>
                        <content:encoded><![CDATA[<p>Thank you Hans for your answer.  I will try it those codes how they will cooperate together.  </p>
<p>I've got another question about meteor effect. Where about we must change this code to new meteor cycle be right behind the meteor tail. I mean if we don't have to wait until whole strip is clear than new cycle is started.  </p>
<p>Thank you.</p>
<pre contenteditable="false">void loop() {
  meteorRain(0xff,0xff,0xff,10, 64, true, 30);
}

void meteorRain(byte red, byte green, byte blue, byte meteorSize, byte meteorTrailDecay, boolean meteorRandomDecay, int SpeedDelay) {  
  setAll(0,0,0);
 
  for(int i = 0; i &lt; NUM_LEDS+NUM_LEDS; i++) {
   
   
    // fade brightness all LEDs one step
    for(int j=0; j&lt;NUM_LEDS; j++) {
      if( (!meteorRandomDecay) || (random(10)&gt;5) ) {
        fadeToBlack(j, meteorTrailDecay );        
      }
    }
   
    // draw meteor
    for(int j = 0; j &lt; meteorSize; j++) {
      if( ( i-j &lt;NUM_LEDS) &amp;&amp; (i-j&gt;=0) ) {
        setPixel(i-j, red, green, blue);
      }
    }
   
    showStrip();
    delay(SpeedDelay);
  }
}

void fadeToBlack(int ledNo, byte fadeValue) {
 #ifdef ADAFRUIT_NEOPIXEL_H
    // NeoPixel
    uint32_t oldColor;
    uint8_t r, g, b;
    int value;
   
    oldColor = strip.getPixelColor(ledNo);
    r = (oldColor &amp; 0x00ff0000UL) &gt;&gt; 16;
    g = (oldColor &amp; 0x0000ff00UL) &gt;&gt; 8;
    b = (oldColor &amp; 0x000000ffUL);

    r=(r&lt;=10)? 0 : (int) r-(r*fadeValue/256);
    g=(g&lt;=10)? 0 : (int) g-(g*fadeValue/256);
    b=(b&lt;=10)? 0 : (int) b-(b*fadeValue/256);
   
    strip.setPixelColor(ledNo, r,g,b);
 #endif
 #ifndef ADAFRUIT_NEOPIXEL_H
   // FastLED
   leds.fadeToBlackBy( fadeValue );
 #endif  
}</pre>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>darek</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3784</guid>
                    </item>
				                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3783</link>
                        <pubDate>Mon, 08 Nov 2021 11:38:30 +0000</pubDate>
                        <description><![CDATA[So when combining effects, you will have to make sure that &quot;steps&quot; of each of effects is ebin executed.This can come with a lot of challenges, since some effects keep running in their own lo...]]></description>
                        <content:encoded><![CDATA[<p>So when combining effects, you will have to make sure that "steps" of each of effects is ebin executed.<br />This can come with a lot of challenges, since some effects keep running in their own loop, and won't allow the other effects to do their "steps".</p>
<p>If I understand things right: you have 5 LEDs steady and one color, then a few LEDs that do the RGB loop, and 5 LEDs at the end that flash (like the strobe effect maybe?).</p>
<p>Since the first 5 are easy, and you already managed the 2nd effect (I did not verify the code), the adding the 3rd effect may not be that difficult. The only thing that may be a challenge in the 3rd effect is how fast it should be flashing.</p>
<p>This is how I would approach this initially:</p>
<p>1. The Cylon Effect or RGB loop should run for the range between the 6th LED and the 6th LED before the end.<br />2. I'd modify the ShowStrip() function in which we set the first 5 LEDs to a solid color, and alternate on/off of the last 5 LEDs.</p>
<p>For example, something like this (I removed the Adafruit stuff since you're using FastLED anyway):</p>
<pre contenteditable="false">void showStrip() {
  // fill 5 first LEDs with a color, say white for example
  for(i=0; i&lt;5; i++) {
    leds=CRGB(10,10,0);
  }

  // toggle last ones on/off
  CRGB lastColor;
  if(leds==CRGB(0,0,0)) {
    lastColor = CRGB(10,10,0); 
  } else {
    lastColor = CRGB(0,0,0);
  }
 
  for(i=NUM_LEDS-5; i&lt;NUM_LEDS; i++) {
    leds=lastColor;
  }

  FastLED.show();
}</pre>
<p> </p>
<p>Note: untested code, and I may not have had enough coffee yet today to wake up my brain 😁 </p>
<p>Now the problem with this solution is that you have no control over the flashing speed. Right now it just toggles colors.</p>
<p>You could also try this, to make it flash (strobe like), but again, you have no control over the speed.</p>
<pre contenteditable="false">void showStrip() {
  // fill 5 first LEDs with a color, say white for example
  for(i=0; i&lt;5; i++) {
    leds=CRGB(10,10,0);
  }

  // set last ones off
  for(i=NUM_LEDS-5; i&lt;NUM_LEDS; i++) {
    leds=CRGB(0,0,0);
  }

  FastLED.show();
 
  // set last ones on
  for(i=NUM_LEDS-5; i&lt;NUM_LEDS; i++) {
    leds=CRGB(10,10,0);
  }

  FastLED.show();
}</pre>
<p> </p>
<p>Now, and I do not consider this a good solution but it may be sufficient for your application, you could add a delay after the first "FastLED.show()", but this would affect the cylon or RGBLoop effect as well.</p>
<p>You could make it more controllable (and complex) by using the internal clock of your Arduino and turn those last 5 LEDs on or off based on how much time has passed.</p>
<p>As yet another complex alternative; you could experiment with interrupts. I have to warn you though that working with interrupts can be a pain 😊 </p>
<p>I hope this at least gets you started.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3783</guid>
                    </item>
				                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3782</link>
                        <pubDate>Fri, 05 Nov 2021 17:58:02 +0000</pubDate>
                        <description><![CDATA[HI Hans.
1)    I have issue with some codes. I&#039;m using your LED strip effects . But what I trying to  do is. I&#039;m trying to use three effects on one strip. First 5 LEDs light still , middle ...]]></description>
                        <content:encoded><![CDATA[<p>HI Hans.</p>
<p>1)    I have issue with some codes. I'm using your LED strip effects . But what I trying to  do is. I'm trying to use three effects on one strip. First 5 LEDs light still , middle bit to cylon or other effect , and last 5 LEDs flashing. </p>
<p>So I manage to do 5 LEDs still with middle bit Fade In and Fade Out ..... but something is blocking me to flashing rest of the LEDs. So I named middle bit TREE and flashing bit as TOP  and still  bit is in loop . I know is not enough LEDs in middle bit array becase this is testing code and my strip have 68 LEDs.I'm only try to wrork couple effects on one strip. Ihave moment it was work for while 3 effects I mean, but the TOP bit was flashing after when the middle loop was finish( fade in and out).</p>
<p>2)  Than another thing what I was thinkig of is METEOR effect . Hoe to make meteor go right after tail. Not to wait until all strip will be clear. Because I try to longer the Meteor tail or time etc. And new Meteor start run after last tail is dissapear. So my question is if is possible to make it your METEOR cde this way. And which line in this code is responsible for that.</p>
<p>P.S.  I didnt put code of meteor here . This code below is only for issue number 1.Thank you.</p>
<pre contenteditable="false">#include "FastLED.h"
#define NUM_LEDS 68
CRGB leds;
#define PIN 6

#define NUM_TREE_LEDS 41

int Tree={3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43};

#define NUM_TOP_LEDS  2
int Top={66,67};


void setup()
{
  FastLED.addLeds&lt;WS2811, PIN, GRB&gt;(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
}



void showStrip() {
 #ifdef ADAFRUIT_NEOPIXEL_H
   // NeoPixel
   strip.show();
 #endif
 #ifndef ADAFRUIT_NEOPIXEL_H
   // FastLED
   FastLED.show();
 #endif
}

void setPixel(int Pixel, byte red, byte green, byte blue) {
 #ifdef ADAFRUIT_NEOPIXEL_H
   // NeoPixel
   strip.setPixelColor(Pixel, strip.Color(red, green, blue));
 #endif
 #ifndef ADAFRUIT_NEOPIXEL_H
   // FastLED
   leds.r = red;
   leds.g = green;
   leds.b = blue;
 #endif
}

void setAll(byte red, byte green, byte blue) {
  for(int i = 3; i &lt; NUM_TREE_LEDS; i++ ) {           // here is change to TREE
    setPixel(i, red, green, blue);
  }
  showStrip();
}


void loop() {

 for(int i=0; i&lt;3; i++){            // this is still bit
    leds=CRGB(10,10,0);            
    FastLED.show();}

    for(int a=0;a&lt;256 ;a++){              //this should be a TOP bit
    leds=CRGB(20,20,20);
    
    }
//    FastLED.show();
    delay (10);
    FastLED.show();
 
    for (int a=255;a&gt;0;a--){
    leds=CRGB(0,0,0);
    
    }
    
 
 delay(10);
 FastLED.show();
 
 
  RGBLoop();
}

void RGBLoop(){
  for(int j = 0; j &lt; 3; j++ ) {
    // Fade IN
    for(int Tree = 0; Tree &lt; 256; Tree++) {
      switch(j) {
        case 0: setAll(Tree,0,0); break;
        case 1: setAll(0,Tree,0); break;
        case 2: setAll(0,0,Tree); break;
      }
      showStrip();
      delay(3);
    }
    // Fade OUT
    for(int Tree = 255; Tree &gt;= 0; Tree--) {
      switch(j) {
        case 0: setAll(Tree,0,0); break;
        case 1: setAll(0,Tree,0); break;
        case 2: setAll(0,0,Tree); break;
      }
      showStrip();
      delay(3);
    }
  }
}</pre>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>darek</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3782</guid>
                    </item>
				                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3702</link>
                        <pubDate>Sun, 22 Aug 2021 09:48:43 +0000</pubDate>
                        <description><![CDATA[Well looking into the code of others is never a bad thing - I do this from time to time as well 😊 
Just be careful with copy and paste.
On that note:It is not always easy to look at the co...]]></description>
                        <content:encoded><![CDATA[<p>Well looking into the code of others is never a bad thing - I do this from time to time as well 😊 </p>
<p>Just be careful with copy and paste.</p>
<p>On that note:<br />It is not always easy to look at the code from others, and sometimes takes quite a bit of effort to understand what the programmer was trying to do.</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3702</guid>
                    </item>
				                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3701</link>
                        <pubDate>Sun, 22 Aug 2021 00:26:28 +0000</pubDate>
                        <description><![CDATA[Yes I&#039;m noticed void setup and loop is missing . I&#039;m just copy that code from github .  I&#039;m learning or try to learn all of this new staff. Maybe I missed some file from there. 
Thanks anyw...]]></description>
                        <content:encoded><![CDATA[<p>Yes I'm noticed void setup and loop is missing . I'm just copy that code from github .  I'm learning or try to learn all of this new staff. Maybe I missed some file from there. </p>
<p>Thanks anyway. </p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>darek</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3701</guid>
                    </item>
				                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3700</link>
                        <pubDate>Sat, 21 Aug 2021 10:48:59 +0000</pubDate>
                        <description><![CDATA[You will need to post your full sketch ... the code you posted before is incomplete ...
Als when you get an error message: copy and paste the error message here as well, this way I can find...]]></description>
                        <content:encoded><![CDATA[<p>You will need to post your full sketch ... the code you posted before is incomplete ...</p>
<p>Als when you get an error message: copy and paste the error message here as well, this way I can find the problem much faster with much less effort.</p>
<p>For example in the code you posted earlier, you are missing a "void setup" and a "void loop" ...<br />I'm not sure where the DrawMarquee functions come from either or where the u8G2 library is being used ... 😔 </p>
<blockquote data-userid="5694" data-postid="3695" data-mention="darek">
<div class="wpforo-post-quote-author"><strong> Posted by: @darek </strong></div>
<table class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">
<tbody>
<tr>
<td id="LC15" class="blob-code blob-code-inner js-file-line"> </td>
</tr>
</tbody>
</table>
<table class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">
<tbody>
<tr>
<td id="L72" class="blob-num js-line-number" data-line-number="72">
<pre contenteditable="false">#include &lt;Arduino.h&gt;
#include &lt;U8g2lib.h&gt;
#define FASTLED_INTERNAL
#include &lt;FastLED.h&gt;


void DrawMarquee()
{
    static byte j = 0;
    j+=4;
    byte k = j;

    // Roughly equivalent to fill_rainbow(g_LEDs, NUM_LEDS, j, 8);

    CRGB c;
    for (int i = 0; i &lt; NUM_LEDS; i ++)
        g_LEDs = c.setHue(k+=8);

    static int scroll = 0;
    scroll++;

    for (int i = scroll % 5; i &lt; NUM_LEDS - 1; i += 5)
    {
        g_LEDs = CRGB::Black;
    }
    delay(50);
}

void DrawMarqueeMirrored()
{
    static byte j = 0;
    j+=4;
    byte k = j;

    // Roughly equivalent to fill_rainbow(g_LEDs, NUM_LEDS, j, 8);

    CRGB c;
    for (int i = 0; i &lt; (NUM_LEDS + 1) / 2; i ++)
    {
        g_LEDs = c.setHue(k);
        g_LEDs = c.setHue(k);
        k+= 8;
    }


    static int scroll = 0;
    scroll++;

    for (int i = scroll % 5; i &lt; NUM_LEDS / 2; i += 5)
    {
        g_LEDs = CRGB::Black;
        g_LEDs = CRGB::Black;
    }   

    delay(50);
}

</pre>
</td>
</tr>
</tbody>
</table>
</blockquote>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/3/#post-3700</guid>
                    </item>
				                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/2/#post-3699</link>
                        <pubDate>Fri, 20 Aug 2021 16:22:09 +0000</pubDate>
                        <description><![CDATA[Basically if you could run this main code on your Arduino or just verify on Arduino IDE. And tell if its ok. Thank you.]]></description>
                        <content:encoded><![CDATA[<p>Basically if you could run this main code on your Arduino or just verify on Arduino IDE. And tell if its ok. Thank you.</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>darek</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/2/#post-3699</guid>
                    </item>
				                    <item>
                        <title>RE: Ws2811 10×10 panel</title>
                        <link>https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/2/#post-3698</link>
                        <pubDate>Fri, 20 Aug 2021 16:18:44 +0000</pubDate>
                        <description><![CDATA[Sorry my mistake.  I did it  define NUM_LEDS 
without those brackets which you mention  ,and this code come with the error  for Arduino  Uno .]]></description>
                        <content:encoded><![CDATA[<p>Sorry my mistake.  I did it  define NUM_LEDS </p>
<p>without those brackets which you mention  ,and this code come with the error  for Arduino  Uno .</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>darek</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/ws2811-10x10-panel/paged/2/#post-3698</guid>
                    </item>
							        </channel>
        </rss>
		