<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Skitch/ Source Code Required]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=694</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=694&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Skitch/ Source Code Required.]]></description>
		<lastBuildDate>Wed, 17 Apr 2019 19:40:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Skitch/ Source Code Required]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2090#p2090</link>
			<description><![CDATA[<div class="quotebox"><cite>Guillaume wrote:</cite><blockquote><p>switch is a keyword, you cannot use it as a variable name.</p></blockquote></div><p>switch is a keyword</p><p>Switch is not<br />SWITCH is not<br />sWiTcH is not</p><p>etc.</p>]]></description>
			<author><![CDATA[null@example.com (Daba)]]></author>
			<pubDate>Wed, 17 Apr 2019 19:40:32 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2090#p2090</guid>
		</item>
		<item>
			<title><![CDATA[Re: Skitch/ Source Code Required]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2061#p2061</link>
			<description><![CDATA[<p>switch is a keyword, you cannot use it as a variable name.</p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Tue, 09 Apr 2019 21:25:07 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2061#p2061</guid>
		</item>
		<item>
			<title><![CDATA[Re: Skitch/ Source Code Required]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2060#p2060</link>
			<description><![CDATA[<p>i got this error when i try to execute your modified code /sketch. Kindly remove this error. thanks</p><br /><p>error: expected &#039;)&#039; before &#039;switch&#039;</p><p>exit status 1<br />expected unqualified-id before &#039;switch&#039;</p>]]></description>
			<author><![CDATA[null@example.com (shezi)]]></author>
			<pubDate>Tue, 09 Apr 2019 12:07:06 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2060#p2060</guid>
		</item>
		<item>
			<title><![CDATA[Re: Skitch/ Source Code Required]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2053#p2053</link>
			<description><![CDATA[<div class="codebox"><pre><code>/*
   -- New project --
   
   This source code of graphical user interface 
   has been generated automatically by RemoteXY editor.
   To compile this code using RemoteXY library 2.3.3 or later version 
   download by link http://remotexy.com/en/library/
   To connect using RemoteXY mobile app by link http://remotexy.com/en/download/                   
     - for ANDROID 4.1.1 or later version;
     - for iOS 1.2.1 or later version;
    
   This source code is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.    
*/

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings 
#define REMOTEXY_SERIAL Serial
#define REMOTEXY_SERIAL_SPEED 115200
#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,2,0,0,0,30,0,8,13,1,
  2,0,23,14,22,11,2,26,31,31,
  79,78,0,79,70,70,0,1,0,28,
  32,12,12,2,31,88,0 };
  
// this structure defines all the variables of your control interface 
struct {

    // input variable
  uint8_t switch; // =1 if switch ON and =0 if OFF 
  uint8_t button; // =1 if button pressed, else =0

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

} RemoteXY;
#pragma pack(pop)

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

#define PIN_SWITCH 13
#define PIN_BUTTON 14


void setup() 
{
  RemoteXY_Init (); 
  
  pinMode (PIN_SWITCH, OUTPUT);
  pinMode (PIN_BUTTON, OUTPUT);
  
  // TODO you setup code
  
}

void loop() 
{ 
    RemoteXY_Handler ();
    
    static uint8_t switch_PreviousValue = RemoteXY.switch;
    static uint8_t button_PreviousValue = RemoteXY.button;
    
    // if switch value changed
    if ( RemoteXY.switch != switch_PreviousValue )
    {
        digitalWrite( PIN_SWITCH, RemoteXY.switch == 1 ? HIGH : LOW );
        switch_PreviousValue = RemoteXY.switch;
    }
    
    // if switch == 1 and button value changed
    if ( RemoteXY.switch == 1 &amp;&amp; RemoteXY.button != button_PreviousValue )
    {
        digitalWrite( PIN_BUTTON, RemoteXY.button == 1 ? HIGH : LOW );
        button_PreviousValue == RemoteXY.button;
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Tue, 02 Apr 2019 10:20:42 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2053#p2053</guid>
		</item>
		<item>
			<title><![CDATA[Re: Skitch/ Source Code Required]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2052#p2052</link>
			<description><![CDATA[<p>Kindly update the following complete sketch as required above. I am trying according to your providing sketch but getting errors. Thanks alot.</p><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.3.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.1.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.2.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 />*/</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__ESP8266_HARDSERIAL_POINT</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_SERIAL Serial<br />#define REMOTEXY_SERIAL_SPEED 115200<br />#define REMOTEXY_WIFI_SSID &quot;RemoteXY&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot;<br />#define REMOTEXY_SERVER_PORT 6377</p><br /><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,2,0,0,0,30,0,8,13,1,<br />&nbsp; 2,0,23,14,22,11,2,26,31,31,<br />&nbsp; 79,78,0,79,70,70,0,1,0,28,<br />&nbsp; 32,12,12,2,31,88,0 };<br />&nbsp; <br />// this structure defines all the variables of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variable<br />&nbsp; uint8_t switch; // =1 if switch ON and =0 if OFF <br />&nbsp; uint8_t button; // =1 if button pressed, else =0 </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><p>#define PIN_SWITCH 13<br />#define PIN_BUTTON 14</p><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; <br />&nbsp; pinMode (PIN_SWITCH, OUTPUT);<br />&nbsp; pinMode (PIN_BUTTON, OUTPUT);<br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />&nbsp; digitalWrite(PIN_SWITCH, (RemoteXY.switch==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_BUTTON, (RemoteXY.button==0)?LOW:HIGH);<br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer</p><br /><p>}</p>]]></description>
			<author><![CDATA[null@example.com (shezi)]]></author>
			<pubDate>Tue, 02 Apr 2019 07:30:22 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2052#p2052</guid>
		</item>
		<item>
			<title><![CDATA[Re: Skitch/ Source Code Required]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2050#p2050</link>
			<description><![CDATA[<p>Welcome <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Something like this ?</p><div class="codebox"><pre><code>void loop()
{
    static uint8_t switch_PreviousValue = RemoteXY.switch;
    static uint8_t button_PreviousValue = RemoteXY.button;
    
    // if switch value changed
    if ( RemoteXY.switch != switch_PreviousValue )
    {
        digitalWrite( pin_relay1, RemoteXY.switch == 1 ? HIGH : LOW );
        switch_PreviousValue = RemoteXY.switch;
    }
    
    // if switch == 1 and button value changed
    if ( RemoteXY.switch == 1 &amp;&amp; RemoteXY.button != button_PreviousValue )
    {
        digitalWrite( pin_relay2, RemoteXY.button == 1 ? HIGH : LOW );
        button_PreviousValue == RemoteXY.button;
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Sun, 31 Mar 2019 18:26:53 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2050#p2050</guid>
		</item>
		<item>
			<title><![CDATA[Skitch/ Source Code Required]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2049#p2049</link>
			<description><![CDATA[<p>Hello friends,<br />I am new one and do not know many more. I just want to make a simple project with RemoteXY app, detail is given below, any friend can create a simple sketch/ source code for this simple project. Thanks</p><p><strong>Switch</strong> (On/Off) and One <strong>Button</strong> (Push Button) both are connected with Relay.<br /><strong>Relay-1</strong> should work with <strong>Switch</strong> (On/Off)<br /><strong>Relay-2</strong> should work with <strong>Button</strong> (Push Button)<br />if<br />Switch (On/Off) is in <strong>&quot;Off&quot;</strong> position, Push Button should not work<br />and<br />if <strong>Switch</strong> (On/Off) is in &quot;<strong>On</strong>&quot; position, Push Button should work.</p>]]></description>
			<author><![CDATA[null@example.com (shezi)]]></author>
			<pubDate>Sat, 30 Mar 2019 07:43:01 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2049#p2049</guid>
		</item>
	</channel>
</rss>
