<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — How work with RGB Color?]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=711</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=711&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How work with RGB Color?.]]></description>
		<lastBuildDate>Sat, 20 Apr 2019 15:42:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2112#p2112</link>
			<description><![CDATA[<p>Magnificent! Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (Kickster)]]></author>
			<pubDate>Sat, 20 Apr 2019 15:42:40 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2112#p2112</guid>
		</item>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2111#p2111</link>
			<description><![CDATA[<p>Change<br /></p><div class="codebox"><pre><code>void colorWipe(uint8_t color) {</code></pre></div><p>To<br /></p><div class="codebox"><pre><code>void colorWipe(uint32_t color) {</code></pre></div><p>Then it should work..</p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Sat, 20 Apr 2019 00:39:40 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2111#p2111</guid>
		</item>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2110#p2110</link>
			<description><![CDATA[<p>Okay... my last wish I hope <img src="https://forum.remotexy.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> Don´t see any reason why is working only blue color:</p><br /><p>////////////////////////////////////////////// <br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <br />////////////////////////////////////////////// </p><p>// RemoteXY select connection mode and include library&nbsp; <br />#define REMOTEXY_MODE__ESP8266WIFI_LIB_POINT<br />#include &lt;ESP8266WiFi.h&gt; <br />#include &lt;RemoteXY.h&gt; </p><br /><p>// RemoteXY connection settings&nbsp; <br />#define REMOTEXY_WIFI_SSID &quot;RemoteXY&quot; <br />#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot; <br />#define REMOTEXY_SERVER_PORT 6377 </p><br /><p>// RemoteXY configurate&nbsp; &nbsp;<br />#pragma pack(push, 1) <br />uint8_t RemoteXY_CONF[] = <br />&nbsp; { 255,3,0,0,0,11,0,8,24,0,<br />&nbsp; 6,0,20,4,55,55,24,24 }; <br />&nbsp; &nbsp;<br />// this structure defines all the variables of your control interface&nbsp; <br />struct { </p><p>&nbsp; &nbsp; // input variable<br />&nbsp; uint8_t LOOL_r; // =0..255 Red color value <br />&nbsp; uint8_t LOOL_g; // =0..255 Green color value <br />&nbsp; uint8_t LOOL_b; // =0..255 Blue color value </p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0 </p><p>} RemoteXY; <br />#pragma pack(pop) </p><p>///////////////////////////////////////////// <br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <br />///////////////////////////////////////////// <br />#include &lt;Adafruit_NeoPixel.h&gt;</p><br /><p>#define PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 14<br />#define NUMPIXELS&nbsp; &nbsp; &nbsp; 100<br />#define LED_COUNT&nbsp; &nbsp; &nbsp; 60</p><p>Adafruit_NeoPixel strip(LED_COUNT, PIN, NEO_GRB + NEO_KHZ400);</p><br /><p>void setup()&nbsp; <br />{ <br />&nbsp; RemoteXY_Init ();<br />&nbsp; strip.begin();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// INITIALIZE NeoPixel strip object (REQUIRED)<br />&nbsp; strip.show();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Turn OFF all pixels ASAP<br />&nbsp; strip.setBrightness(50); // Set BRIGHTNESS to about 1/5 (max = 255)&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; // TODO you setup code <br />&nbsp; &nbsp;<br />} </p><p>void loop()&nbsp; {<br />&nbsp; {<br />&nbsp; &nbsp; RemoteXY_Handler();<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; static uint8_t prevR = RemoteXY.LOOL_r;<br />&nbsp; &nbsp; static uint8_t prevG = RemoteXY.LOOL_g;<br />&nbsp; &nbsp; static uint8_t prevB = RemoteXY.LOOL_b;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; if ( RemoteXY.LOOL_r != prevR || RemoteXY.LOOL_g != prevG || RemoteXY.LOOL_b != prevB )<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; prevR = RemoteXY.LOOL_r;<br />&nbsp; &nbsp; &nbsp; &nbsp; prevG = RemoteXY.LOOL_g;<br />&nbsp; &nbsp; &nbsp; &nbsp; prevB = RemoteXY.LOOL_b;<br />&nbsp; &nbsp; &nbsp; &nbsp; colorWipe( strip.Color( RemoteXY.LOOL_r,&nbsp; &nbsp;RemoteXY.LOOL_g,&nbsp; RemoteXY.LOOL_b ));<br />&nbsp; &nbsp; }<br />}<br />}<br />&nbsp; // TODO you loop code <br />&nbsp; // use the RemoteXY structure for data transfer </p><p>void colorWipe(uint8_t color) {<br />&nbsp; for(int i=0; i&lt;strip.numPixels(); i++) { // For each pixel in strip...<br />&nbsp; &nbsp; strip.setPixelColor(i, color);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//&nbsp; Set pixel&#039;s color (in RAM)<br />&nbsp; &nbsp; strip.show();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; Update strip to match<br />&nbsp; }<br />}</p><p>If anybody know, I´ll be very glad, thanks <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Kickster)]]></author>
			<pubDate>Fri, 19 Apr 2019 17:44:25 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2110#p2110</guid>
		</item>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2109#p2109</link>
			<description><![CDATA[<p>Nice <img src="https://forum.remotexy.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Fri, 19 Apr 2019 17:19:19 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2109#p2109</guid>
		</item>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2108#p2108</link>
			<description><![CDATA[<p>IT WORKS! Only for blue color, but I´ll try some repair magic. Thank you!</p>]]></description>
			<author><![CDATA[null@example.com (Kickster)]]></author>
			<pubDate>Fri, 19 Apr 2019 17:11:09 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2108#p2108</guid>
		</item>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2104#p2104</link>
			<description><![CDATA[<p>What about you call colorWipe only when the color values changed ?</p><div class="codebox"><pre><code>void loop()
{
    RemoteXY_Handler();
    
    static uint8_t prevR = RemoteXY.LOOL_r;
    static uint8_t prevG = RemoteXY.LOOL_g;
    static uint8_t prevB = RemoteXY.LOOL_b;
    
    if ( RemoteXY.LOOL_r != prevR || RemoteXY.LOOL_g != prevG || RemoteXY.LOOL_b != prevB )
    {
        prevR = RemoteXY.LOOL_r;
        prevG = RemoteXY.LOOL_g;
        prevB = RemoteXY.LOOL_b;
        colorWipe( strip.Color( RemoteXY.LOOL_r,   RemoteXY.LOOL_g,  RemoteXY.LOOL_b ));
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Fri, 19 Apr 2019 16:43:50 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2104#p2104</guid>
		</item>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2103#p2103</link>
			<description><![CDATA[<p>int wait was only some thing I coppied from another code. Removed. For the strip.show() - I need change the colors in real time (sure +- few millisecs) so I need the update every loop... Hope I´m right <img src="https://forum.remotexy.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>I edited code up.</p>]]></description>
			<author><![CDATA[null@example.com (Kickster)]]></author>
			<pubDate>Fri, 19 Apr 2019 16:38:43 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2103#p2103</guid>
		</item>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2102#p2102</link>
			<description><![CDATA[<p>First, place strip.show(); after the for loop. You want to update once, not every loop iteration. Second, you have a &quot;wait&quot; parameter in the colorWipe function. What is it? Some delay() that you removed? You cannot have blocking code.</p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Fri, 19 Apr 2019 16:09:39 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2102#p2102</guid>
		</item>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2101#p2101</link>
			<description><![CDATA[<p>Yeah, it works in program, but in app is unlimited connecting loading, and then... &quot;Socket create error: Host unreachable&quot;. But without colorWipe it works fine, sadly but not for me <img src="https://forum.remotexy.com/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (Kickster)]]></author>
			<pubDate>Fri, 19 Apr 2019 14:33:40 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2101#p2101</guid>
		</item>
		<item>
			<title><![CDATA[Re: How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2099#p2099</link>
			<description><![CDATA[<p>Welcome</p><p>This doesn&#039;t work ?<br /></p><div class="codebox"><pre><code>colorWipe( strip.Color( RemoteXY.LOOL_r,   RemoteXY.LOOL_g,  RemoteXY.LOOL_b ), 50 );</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Fri, 19 Apr 2019 12:23:27 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2099#p2099</guid>
		</item>
		<item>
			<title><![CDATA[How work with RGB Color?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2094#p2094</link>
			<description><![CDATA[<p>Hi, as a Arduino newbie I have a question. I want remote my WS2811 adressable led strip through RGB color panel. Best choice for me are three variables - red, green, blue - and work with them, but i dunno how to earn them. There is my in-progress sketch:</p><p>////////////////////////////////////////////// <br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <br />////////////////////////////////////////////// </p><p>// RemoteXY select connection mode and include library&nbsp; <br />#define REMOTEXY_MODE__ESP8266WIFI_LIB_POINT<br />#include &lt;ESP8266WiFi.h&gt; <br />#include &lt;RemoteXY.h&gt; </p><br /><p>// RemoteXY connection settings&nbsp; <br />#define REMOTEXY_WIFI_SSID &quot;RemoteXY&quot; <br />#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot; <br />#define REMOTEXY_SERVER_PORT 6377 </p><br /><p>// RemoteXY configurate&nbsp; &nbsp;<br />#pragma pack(push, 1) <br />uint8_t RemoteXY_CONF[] = <br />&nbsp; { 255,3,0,0,0,11,0,8,24,0,<br />&nbsp; 6,0,20,4,55,55,24,24 }; <br />&nbsp; &nbsp;<br />// this structure defines all the variables of your control interface&nbsp; <br />struct { </p><p>&nbsp; &nbsp; // input variable<br />&nbsp; uint8_t LOOL_r; // =0..255 Red color value <br />&nbsp; uint8_t LOOL_g; // =0..255 Green color value <br />&nbsp; uint8_t LOOL_b; // =0..255 Blue color value </p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0 </p><p>} RemoteXY; <br />#pragma pack(pop) </p><p>///////////////////////////////////////////// <br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <br />///////////////////////////////////////////// <br />#include &lt;Adafruit_NeoPixel.h&gt;</p><br /><p>#define PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 14<br />#define NUMPIXELS&nbsp; &nbsp; &nbsp; 100<br />#define LED_COUNT&nbsp; &nbsp; &nbsp; 60</p><p>Adafruit_NeoPixel strip(LED_COUNT, PIN, NEO_GRB + NEO_KHZ400);</p><br /><p>void setup()&nbsp; <br />{ <br />&nbsp; RemoteXY_Init ();<br />&nbsp; strip.begin();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// INITIALIZE NeoPixel strip object (REQUIRED)<br />&nbsp; strip.show();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Turn OFF all pixels ASAP<br />&nbsp; strip.setBrightness(50); // Set BRIGHTNESS to about 1/5 (max = 255)&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; // TODO you setup code <br />&nbsp; &nbsp;<br />} </p><p>void loop()&nbsp; {<br />&nbsp; RemoteXY_Handler (); <br />&nbsp; colorWipe( strip.Color( RemoteXY.LOOL_r,&nbsp; &nbsp;RemoteXY.LOOL_g,&nbsp; RemoteXY.LOOL_b ));<br />&nbsp; <br />}&nbsp; &nbsp;<br />&nbsp; // TODO you loop code <br />&nbsp; // use the RemoteXY structure for data transfer </p><p>void colorWipe(uint8_t color) {<br />&nbsp; for(int i=0; i&lt;strip.numPixels(); i++) { // For each pixel in strip...<br />&nbsp; &nbsp; strip.setPixelColor(i, color);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//&nbsp; Set pixel&#039;s color (in RAM)<br />&nbsp; &nbsp; strip.show();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; Update strip to match<br />&nbsp; }<br />}</p><p>Thank you for all advices <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Kickster)]]></author>
			<pubDate>Thu, 18 Apr 2019 13:04:26 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2094#p2094</guid>
		</item>
	</channel>
</rss>
