<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — RgbW]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=29</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=29&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in RgbW.]]></description>
		<lastBuildDate>Thu, 19 Jan 2017 12:16:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: RgbW]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=112#p112</link>
			<description><![CDATA[<p>Видимо у вас нагрузка включается при напряжении 0 и выключается при напряжении 5В. Тогда вы сделали правильно - инвертировали уровень.<br />Можно сделать немного по другому. Оставьте для сигналов RGB элемент управления RGB-круг. Для сигнала W слайдер. Т.е. на интерфейсе у вас будет RGB-круг и рядом слайдер. Возможно так будет удобнее.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Thu, 19 Jan 2017 12:16:26 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=112#p112</guid>
		</item>
		<item>
			<title><![CDATA[Re: RgbW]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=104#p104</link>
			<description><![CDATA[<p>добавил функцию и исправил</p><p>/*<br />&nbsp; &nbsp;-- RGBW --<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.2.5 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 3.7.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.0.7 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 />*/</p><p>//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>// определение режима соединения и подключение библиотеки RemoteXY <br />#define REMOTEXY_MODE__SOFTSERIAL<br />#define GRBLED_PIN_R 11&nbsp; &nbsp; // пин для канала R<br />#define GRBLED_PIN_G 10&nbsp; &nbsp; // пин для канала G<br />#define GRBLED_PIN_B 9&nbsp; &nbsp; // пин для канала B<br />#define GRBLED_PIN_W 6&nbsp; &nbsp; // пин для канала W</p><p>int R=255, G=255, B=255, W=255;</p><p>#include &lt;SoftwareSerial.h&gt;</p><p>#include &lt;RemoteXY.h&gt;</p><p>// настройки соединения <br />#define REMOTEXY_SERIAL_RX 2<br />#define REMOTEXY_SERIAL_TX 3<br />#define REMOTEXY_SERIAL_SPEED 9600</p><br /><p>// конфигурация интерфейса&nbsp; &nbsp;<br />#pragma pack(push, 1) <br />uint8_t RemoteXY_CONF[] = <br />&nbsp; { 4,0,31,0,6,11,0,4,0,17<br />&nbsp; ,1,7,61,2,4,0,33,1,8,61<br />&nbsp; ,2,4,0,53,1,7,61,2,4,0<br />&nbsp; ,71,1,7,61,2 }; <br />&nbsp; &nbsp;<br />// структура определяет все переменные вашего интерфейса управления&nbsp; <br />struct { </p><p>&nbsp; &nbsp; // input variable<br />&nbsp; int8_t slider_R; // =0..100 положение слайдера <br />&nbsp; int8_t slider_G; // =0..100 положение слайдера <br />&nbsp; int8_t slider_B; // =0..100 положение слайдера <br />&nbsp; int8_t slider_W; // =0..100 положение слайдера </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 (); </p><p>&nbsp; <br />&nbsp; pinMode(GRBLED_PIN_R, OUTPUT);<br />&nbsp; pinMode(GRBLED_PIN_G, OUTPUT);<br />&nbsp; pinMode(GRBLED_PIN_B, OUTPUT);<br />&nbsp; pinMode(GRBLED_PIN_W, OUTPUT);<br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // используйте структуру RemoteXY для передачи данных<br />&nbsp; analogWrite(GRBLED_PIN_R, R - RemoteXY.slider_R * 2.55);<br />&nbsp; analogWrite(GRBLED_PIN_G, G - RemoteXY.slider_G * 2.55);<br />&nbsp; analogWrite(GRBLED_PIN_B, B - RemoteXY.slider_B * 2.55);<br />&nbsp; analogWrite(GRBLED_PIN_W, W - RemoteXY.slider_W * 2.55);</p><p>}</p>]]></description>
			<author><![CDATA[null@example.com (cadetandrey)]]></author>
			<pubDate>Wed, 18 Jan 2017 18:20:41 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=104#p104</guid>
		</item>
		<item>
			<title><![CDATA[Re: RgbW]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=103#p103</link>
			<description><![CDATA[<p>Сделал 4 слайдера<br />лента RGBW&nbsp; и драйвер ln298n</p><p>Работает ) При подаче питания сразу все включается - потом слайдерами уменьшается<br />Не подскажите как сделать наоборот что бы при включении все было выключено?</p><p>/*<br />&nbsp; &nbsp;-- RGBW --<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.2.5 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 3.7.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.0.7 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 />*/</p><p>//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>// определение режима соединения и подключение библиотеки RemoteXY <br />#define REMOTEXY_MODE__SOFTSERIAL<br />#define GRBLED_PIN_R 11&nbsp; &nbsp; // пин для канала R<br />#define GRBLED_PIN_G 10&nbsp; &nbsp; // пин для канала G<br />#define GRBLED_PIN_B 9&nbsp; &nbsp; // пин для канала B<br />#define GRBLED_PIN_W 6&nbsp; &nbsp; // пин для канала W</p><p>int slider_R=0, slider_G=0, slider_B=0, slider_W=0;</p><p>#include &lt;SoftwareSerial.h&gt;</p><p>#include &lt;RemoteXY.h&gt;</p><p>// настройки соединения <br />#define REMOTEXY_SERIAL_RX 2<br />#define REMOTEXY_SERIAL_TX 3<br />#define REMOTEXY_SERIAL_SPEED 9600</p><br /><p>// конфигурация интерфейса&nbsp; &nbsp;<br />#pragma pack(push, 1) <br />uint8_t RemoteXY_CONF[] = <br />&nbsp; { 4,0,31,0,6,11,0,4,64,17<br />&nbsp; ,1,7,61,2,4,64,33,1,8,61<br />&nbsp; ,2,4,64,53,1,7,61,2,4,64<br />&nbsp; ,71,1,7,61,2 }; <br />&nbsp; &nbsp;<br />// структура определяет все переменные вашего интерфейса управления&nbsp; <br />struct { </p><p>&nbsp; &nbsp; // input variable<br />&nbsp; int8_t slider_R; // =0..100 положение слайдера <br />&nbsp; int8_t slider_G; // =0..100 положение слайдера <br />&nbsp; int8_t slider_B; // =0..100 положение слайдера <br />&nbsp; int8_t slider_W; // =0..100 положение слайдера </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 (); </p><p>&nbsp; <br />&nbsp; pinMode(GRBLED_PIN_R, OUTPUT);<br />&nbsp; pinMode(GRBLED_PIN_G, OUTPUT);<br />&nbsp; pinMode(GRBLED_PIN_B, OUTPUT);<br />&nbsp; pinMode(GRBLED_PIN_W, OUTPUT);<br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // используйте структуру RemoteXY для передачи данных<br />&nbsp; analogWrite(GRBLED_PIN_R, RemoteXY.slider_R * 2.55);<br />&nbsp; analogWrite(GRBLED_PIN_G, RemoteXY.slider_G * 2.55);<br />&nbsp; analogWrite(GRBLED_PIN_B, RemoteXY.slider_B * 2.55);<br />&nbsp; analogWrite(GRBLED_PIN_W, RemoteXY.slider_W * 2.55);</p><p>}</p>]]></description>
			<author><![CDATA[null@example.com (cadetandrey)]]></author>
			<pubDate>Wed, 18 Jan 2017 18:11:46 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=103#p103</guid>
		</item>
		<item>
			<title><![CDATA[Re: RgbW]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=98#p98</link>
			<description><![CDATA[<p>Канал W для элемента управления RGB не планируется в ближайшее время.<br />Вижу 2 пути решения. <br />1. Добавить в интерфейс слайдер, который будет отвечать за канал W.<br />2. Найти формулу преобразования RGB в RGBW и реализовать ее в программе Arduino.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Tue, 17 Jan 2017 16:18:53 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=98#p98</guid>
		</item>
		<item>
			<title><![CDATA[RgbW]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=87#p87</link>
			<description><![CDATA[<p>Добрый день<br />Можно ли добавить в структуру W ?<br />Для лент rgbw</p><p>Спасибо</p>]]></description>
			<author><![CDATA[null@example.com (cadetandrey)]]></author>
			<pubDate>Sun, 15 Jan 2017 20:58:52 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=87#p87</guid>
		</item>
	</channel>
</rss>
