<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Не работает пример 3 Хелп!]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1348&amp;type=atom" />
	<updated>2021-07-09T20:08:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1348</id>
		<entry>
			<title type="html"><![CDATA[Re: Не работает пример 3 Хелп!]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4111#p4111" />
			<content type="html"><![CDATA[<p>Правильный скетч для примера 3, нога -9 :</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__SERIAL <br />#include &lt;RemoteXY.h&gt; </p><p>/* RemoteXY connection settings */ <br />#define REMOTEXY_SERIAL Serial <br />#define REMOTEXY_SERIAL_SPEED 9600 </p><p>/* RemoteXY configurate&nbsp; */ <br />unsigned char RemoteXY_CONF[] = <br />&nbsp; { 1,0,9,0,1,5,4,128,4,11<br />&nbsp; ,90,20,2 }; <br />&nbsp; &nbsp;<br />/* this structure defines all the variables of your control interface */ <br />struct { </p><p>&nbsp; &nbsp; /* input variable */<br />&nbsp; unsigned char slider_1; /* =0..100 slider position */</p><p>&nbsp; &nbsp; /* other variable */<br />&nbsp; unsigned char connect_flag;&nbsp; /* =1 if wire connected, else =0 */</p><p>} RemoteXY; </p><p>///////////////////////////////////////////// <br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <br />///////////////////////////////////////////// </p><p>#include &lt;Servo.h&gt;&nbsp; </p><p>Servo myservo; </p><br /><p>void setup()&nbsp; <br />{ <br />&nbsp; RemoteXY_Init ();&nbsp; <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; // TODO you setup code <br />&nbsp; myservo.attach(9); <br />&nbsp; RemoteXY.slider_1 = 50; <br />&nbsp; &nbsp;<br />} </p><p>void loop()&nbsp; <br />{&nbsp; <br />&nbsp; RemoteXY_Handler (); </p><p>&nbsp; // TODO you loop code <br />&nbsp; // use the RemoteXY structure for data transfer </p><p>&nbsp; int ms = RemoteXY.slider_1*20+500; <br />&nbsp; myservo.writeMicroseconds(ms); </p><p>}</p>]]></content>
			<author>
				<name><![CDATA[Федя]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1885</uri>
			</author>
			<updated>2021-07-09T20:08:01Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4111#p4111</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Не работает пример 3 Хелп!]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4109#p4109" />
			<content type="html"><![CDATA[<p>Как задать ногу 9 для ползунка сервы на интерфейсе. Пример не работает. Вставляю параллельно кнопку, она включает выключает, а ползунок сервы с 9 ноги не фунциклирует. загружал без подключения ног блютуза на 0 и 1<br />Хелп2!<br />На рисунке подключение к 8 ноге, в тексте описание к 9!!!!!<br />Как правильно то?</p>]]></content>
			<author>
				<name><![CDATA[Федя]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1885</uri>
			</author>
			<updated>2021-07-09T19:13:41Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4109#p4109</id>
		</entry>
</feed>
