<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — WS2812B How do I control my leds? SOLVED!!!]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1224&amp;type=atom" />
	<updated>2020-12-29T20:41:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1224</id>
		<entry>
			<title type="html"><![CDATA[Re: WS2812B How do I control my leds? SOLVED!!!]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3506#p3506" />
			<content type="html"><![CDATA[<p>Nevermind I forgot <img src="https://forum.remotexy.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>It&#039;s been a while since I programmed those fastled leds so I forgot very important line fastLED.show() :DDDD</p><p>Anyway turns out that to get the right value from sliders( by default they give out -48 to 52) I needed to do some maths</p><p>Anyway solved</p>]]></content>
			<author>
				<name><![CDATA[zgs.tamutis]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1671</uri>
			</author>
			<updated>2020-12-29T20:41:07Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3506#p3506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[WS2812B How do I control my leds? SOLVED!!!]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3505#p3505" />
			<content type="html"><![CDATA[<p>So I can&#039;t get my WS2812B leds to work with the sliders or rgb controls <br />Can you help me?</p><br /><br /><br /><p>/*<br />&nbsp; &nbsp;-- New project --<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;This source code of graphical user interface <br />&nbsp; &nbsp;has been generated automatically by RemoteXY editor.<br />&nbsp; &nbsp;To compile this code using RemoteXY library 2.4.3 or later version <br />&nbsp; &nbsp;download by link <a target="_blank" href="http://remotexy.com/en/library/">http://remotexy.com/en/library/</a><br />&nbsp; &nbsp;To connect using RemoteXY mobile app by link <a target="_blank" href="http://remotexy.com/en/download/">http://remotexy.com/en/download/</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;- for ANDROID 4.5.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.4.1 or later version;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;This source code is free software; you can redistribute it and/or<br />&nbsp; &nbsp;modify it under the terms of the GNU Lesser General Public<br />&nbsp; &nbsp;License as published by the Free Software Foundation; either<br />&nbsp; &nbsp;version 2.1 of the License, or (at your option) any later version.&nbsp; &nbsp; <br />*/<br />#include &quot;FastLED.h&quot;</p><p>#define LED_TYPE WS2812B<br />#define LED_PIN 3<br />#define BRIGHTNESS 255<br />#define NUM_LEDS 9<br />#define COLOR_ORDER GRB</p><p>CRGB leds[NUM_LEDS];</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 <br />#define REMOTEXY_MODE__ESP8266WIFI_LIB_CLOUD<br />#include &lt;ESP8266WiFi.h&gt;</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_WIFI_SSID &quot;MEZON-B310-900B&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;A0MYFH31LET&quot;<br />#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot;<br />#define REMOTEXY_CLOUD_PORT 6376<br />#define REMOTEXY_CLOUD_TOKEN &quot;df32d1ba1ad328e741be3b0c647f11d9&quot;</p><br /><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,6,0,0,0,30,0,10,13,1,<br />&nbsp; 7,52,10,8,20,5,2,26,2,7,<br />&nbsp; 52,10,28,20,5,2,26,2,7,52,<br />&nbsp; 9,44,20,5,2,26,2 };<br />&nbsp; <br />// this structure defines all the variables and events of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variables<br />&nbsp; int16_t r;&nbsp; // 32767.. +32767 <br />&nbsp; int16_t g;&nbsp; // 32767.. +32767 <br />&nbsp; int16_t b;&nbsp; // 32767.. +32767 </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 />/////////////////////////////////////////////</p><br /><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; <br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; FastLED.addLeds&lt;WS2812B, LED_PIN, RGB&gt;(leds, NUM_LEDS);<br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />&nbsp; leds[1]=CRGB(RemoteXY.r,RemoteXY.g,RemoteXY.b);<br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer<br />&nbsp; // do not call delay() </p><br /><p>}</p>]]></content>
			<author>
				<name><![CDATA[zgs.tamutis]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1671</uri>
			</author>
			<updated>2020-12-29T17:14:28Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3505#p3505</id>
		</entry>
</feed>
