<?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>
									a question about the sketch - Arduino				            </title>
            <link>https://www.tweaking4all.com/forum/arduino/a-question-about-the-sketch/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 10 May 2026 01:48:18 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: a question about the sketch</title>
                        <link>https://www.tweaking4all.com/forum/arduino/a-question-about-the-sketch/#post-2524</link>
                        <pubDate>Wed, 26 Aug 2020 10:26:15 +0000</pubDate>
                        <description><![CDATA[Hi Twingi,
this all depends a little on your sketch.
There is no easy &quot;define&quot; for this, but what you could do is define your own function to set a pixel.
For example, say you&#039;re using Fa...]]></description>
                        <content:encoded><![CDATA[<p>Hi Twingi,</p>
<p>this all depends a little on your sketch.</p>
<p>There is no easy "define" for this, but what you could do is define your own function to set a pixel.</p>
<p>For example, say you're using FastLED, where you can set a pixel with:</p>
<pre>leds = color;</pre>
<p>Now you could create your own function, something like this:</p>
<pre>void setLED(int LedNo, CRGB color)<br />{<br />  if( (LedNo&lt;&gt;10) &amp;&amp; (LedNo&lt;&gt;11) )<br />  {<br />    leds=color;<br />  }<br />  else<br />  {<br />    leds=CRGB::Black;<br />  }<br />}</pre>
<p>This will set the LED color only if it is not #10 or #11. <br />If it is #10 or #11, it will set it to black (off).</p>
<p>Setting a LED color, so wherever you used to call "<strong>leds=color</strong>", you now do this:</p>
<pre>setLED(lednumber, color);</pre>
<p>Hope this helps.</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/a-question-about-the-sketch/#post-2524</guid>
                    </item>
				                    <item>
                        <title>a question about the sketch</title>
                        <link>https://www.tweaking4all.com/forum/arduino/a-question-about-the-sketch/#post-2521</link>
                        <pubDate>Tue, 25 Aug 2020 16:11:11 +0000</pubDate>
                        <description><![CDATA[is there a way to define certain leds in a sketch


all leds 56
but led 10 and 11 should not light up
how can i define it]]></description>
                        <content:encoded><![CDATA[<pre class="tw-data-text tw-text-large XcVN5d tw-ta" data-placeholder="Übersetzung"><span>is there a way to define certain leds in a sketch


all leds 56</span></pre>
<pre id="tw-target-text" class="tw-data-text tw-text-large XcVN5d tw-ta" data-placeholder="Übersetzung"><span>but led 10 and 11 should not light up</span></pre>
<pre id="tw-target-text" class="tw-data-text tw-text-large XcVN5d tw-ta" data-placeholder="Übersetzung"><span><br /><br /></span>how can i define it</pre>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/arduino/">Arduino</category>                        <dc:creator>twingi</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/arduino/a-question-about-the-sketch/#post-2521</guid>
                    </item>
							        </channel>
        </rss>
		