<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Compatibility with WS2812FX]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1203&amp;type=atom" />
	<updated>2021-07-29T20:40:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1203</id>
		<entry>
			<title type="html"><![CDATA[Re: Compatibility with WS2812FX]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4141#p4141" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>jereminoz wrote:</cite><blockquote><p>#define DEFAULT_SPEED 1000</p></blockquote></div><p>Try adjusting this value lower?</p><p>I suspect that it is building up enough of a delay between loop() functions that the RemoteXY link is timing out.</p>]]></content>
			<author>
				<name><![CDATA[Gunner]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1840</uri>
			</author>
			<updated>2021-07-29T20:40:52Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4141#p4141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Compatibility with WS2812FX]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4139#p4139" />
			<content type="html"><![CDATA[<p>It works for me. Additionally, I use the NeoPixelBus library and control the LEDs via DMA<br /></p><div class="codebox"><pre><code>NeoPixelBus&lt;NeoGrbFeature, NeoEsp8266Dma800KbpsMethod&gt; strip(LED_COUNT);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[klazarev]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=728</uri>
			</author>
			<updated>2021-07-28T07:36:52Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4139#p4139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Compatibility with WS2812FX]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3449#p3449" />
			<content type="html"><![CDATA[<p>Hello,</p><p>My name is Jérémie, I&#039;m new here and I just discovered RemoteXY, it&#039;s really great and make possible a mobile APP for microcontroller ! Amazing !</p><p>In my project, I use standalone a ESP01 and I want to make led effects.<br />I&#039;m trying to use this nice librairy WS2812FX :<a target="_blank" href="http://%20https://github.com/kitesurfer1404/WS2812FX"> https://github.com/kitesurfer1404/WS2812FX</a></p><p>It works well but when I add this instruction to start it in tne loop &quot;ws2812fx.service();&quot; I have connection issue from the mobile phone with RemoteXY, It cannot connect anymore, there must be some conflict ? I use the ESP01 as an access point.</p><p>Can someone please have a look ?</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__ESP8266WIFI_LIB_POINT
#include &lt;ESP8266WiFi.h&gt;

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings 
#define REMOTEXY_WIFI_SSID &quot;RemoteXY&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot;
#define REMOTEXY_SERVER_PORT 6377


// RemoteXY configurate  
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,5,0,0,0,64,0,10,0,1,
  1,1,12,18,42,8,2,16,88,0,
  2,0,12,33,42,8,2,26,31,31,
  79,78,0,79,70,70,0,6,0,13,
  49,41,41,2,16,129,0,6,5,55,
  6,15,76,69,68,32,67,111,110,116,
  114,111,108,32,67,101,110,116,101,114,
  0 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  uint8_t button_1; // =1 if button pressed, else =0 
  uint8_t switch_1; // =1 if switch ON and =0 if OFF 
  uint8_t rgb_1_r; // =0..255 Red color value 
  uint8_t rgb_1_g; // =0..255 Green color value 
  uint8_t rgb_1_b; // =0..255 Blue color value 

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////

#include &lt;WS2812FX.h&gt;
#define LED_PIN 2                       // 0 = GPIO0, 2=GPIO2
#define LED_COUNT 150
#define DEFAULT_COLOR 0xFF5900
#define DEFAULT_BRIGHTNESS 128
#define DEFAULT_SPEED 1000
#define DEFAULT_MODE FX_MODE_RAINBOW_CYCLE 

String modes = &quot;&quot;;
uint8_t myModes[] = {}; // *** optionally create a custom list of effect/mode numbers
boolean auto_cycle = false;

WS2812FX ws2812fx = WS2812FX(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);


void setup() 
{
  RemoteXY_Init (); 
  
  ws2812fx.init();
  ws2812fx.setMode(DEFAULT_MODE);
  ws2812fx.setColor(DEFAULT_COLOR);
  ws2812fx.setSpeed(DEFAULT_SPEED);
  ws2812fx.setBrightness(DEFAULT_BRIGHTNESS);
  ws2812fx.start();
  
  // TODO you setup code
  
}

void loop() 
{ 
  RemoteXY_Handler ();
  
  ws2812fx.service();
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay() 
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[jereminoz]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1616</uri>
			</author>
			<updated>2020-11-11T17:51:01Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3449#p3449</id>
		</entry>
</feed>
