<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — RgbW]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=29&amp;type=atom" />
	<updated>2017-01-19T12:16:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=29</id>
		<entry>
			<title type="html"><![CDATA[Re: RgbW]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=112#p112" />
			<content type="html"><![CDATA[<p>Видимо у вас нагрузка включается при напряжении 0 и выключается при напряжении 5В. Тогда вы сделали правильно - инвертировали уровень.<br />Можно сделать немного по другому. Оставьте для сигналов RGB элемент управления RGB-круг. Для сигнала W слайдер. Т.е. на интерфейсе у вас будет RGB-круг и рядом слайдер. Возможно так будет удобнее.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2017-01-19T12:16:26Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=112#p112</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RgbW]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=104#p104" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[cadetandrey]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=82</uri>
			</author>
			<updated>2017-01-18T18:20:41Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=104#p104</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RgbW]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=103#p103" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[cadetandrey]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=82</uri>
			</author>
			<updated>2017-01-18T18:11:46Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=103#p103</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RgbW]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=98#p98" />
			<content type="html"><![CDATA[<p>Канал W для элемента управления RGB не планируется в ближайшее время.<br />Вижу 2 пути решения. <br />1. Добавить в интерфейс слайдер, который будет отвечать за канал W.<br />2. Найти формулу преобразования RGB в RGBW и реализовать ее в программе Arduino.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2017-01-17T16:18:53Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=98#p98</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RgbW]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=87#p87" />
			<content type="html"><![CDATA[<p>Добрый день<br />Можно ли добавить в структуру W ?<br />Для лент rgbw</p><p>Спасибо</p>]]></content>
			<author>
				<name><![CDATA[cadetandrey]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=82</uri>
			</author>
			<updated>2017-01-15T20:58:52Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=87#p87</id>
		</entry>
</feed>
