<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — all buttons 'off']]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1674</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1674&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in all buttons 'off'.]]></description>
		<lastBuildDate>Wed, 07 Jun 2023 20:41:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: all buttons 'off']]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5142#p5142</link>
			<description><![CDATA[<p>I&#039;ve answered in the other forum category you posted this.</p>]]></description>
			<author><![CDATA[null@example.com (Daba)]]></author>
			<pubDate>Wed, 07 Jun 2023 20:41:56 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5142#p5142</guid>
		</item>
		<item>
			<title><![CDATA[all buttons 'off']]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5140#p5140</link>
			<description><![CDATA[<p>hi<br />im making a control panel for in my truck for when im camping ... basically i have 8 buttons to turn things via relays on and off - eg tent light or water pump etc, all is working at the moment but i require a &#039;all off&#039; button that turns all the relays off at once (just in case summut goes tits up) and also turns all the buttons off (go red) on the phone .. i would appreciate if some one could point me in the right direction... my code is as follows ....</p><p>/*<br />&nbsp; &nbsp;-- car project3 --<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 3.1.8 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.11.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.9.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__SOFTSERIAL<br />#include &lt;SoftwareSerial.h&gt;</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings<br />#define REMOTEXY_SERIAL_RX 2<br />#define REMOTEXY_SERIAL_TX 3<br />#define REMOTEXY_SERIAL_SPEED 9600</p><br /><p>// RemoteXY configurate <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =&nbsp; &nbsp;// 240 bytes<br />&nbsp; { 255,9,0,0,0,233,0,16,97,1,10,49,3,6,28,14,4,1,31,32,<br />&nbsp; 72,111,116,32,87,97,116,101,114,32,0,31,72,111,116,32,87,97,116,101,<br />&nbsp; 114,0,10,49,33,6,28,14,4,1,31,32,32,32,72,101,97,116,101,114,<br />&nbsp; 32,32,32,0,31,72,101,97,116,101,114,0,10,113,3,22,28,14,4,1,<br />&nbsp; 31,79,117,116,115,105,100,101,32,76,105,103,104,116,0,31,10,49,33,22,<br />&nbsp; 28,14,4,1,31,32,32,32,32,79,118,101,110,32,32,32,32,0,31,79,<br />&nbsp; 118,101,110,0,10,113,3,38,28,14,4,1,31,82,101,97,114,32,76,105,<br />&nbsp; 103,104,116,0,31,10,113,33,38,27,14,4,1,31,84,101,110,116,32,76,<br />&nbsp; 105,103,104,116,0,31,10,49,3,54,28,15,4,1,31,32,32,32,32,32,<br />&nbsp; 85,83,66,32,32,32,32,32,0,31,85,83,66,0,10,49,33,54,27,15,<br />&nbsp; 4,1,31,32,32,32,32,80,117,109,112,32,32,32,32,0,31,80,117,109,<br />&nbsp; 112,0,10,112,23,78,18,18,4,1,31,65,108,108,32,79,102,102,0,31 };</p><p>// this structure defines all the variables and events of your control interface<br />struct {</p><p>&nbsp; &nbsp; // input variables<br />&nbsp; uint8_t pushSwitch_1; // =1 if state is ON, else =0<br />&nbsp; uint8_t pushSwitch_2; // =1 if state is ON, else =0<br />&nbsp; uint8_t pushSwitch_3; // =1 if state is ON, else =0<br />&nbsp; uint8_t pushSwitch_4; // =1 if state is ON, else =0<br />&nbsp; uint8_t pushSwitch_5; // =1 if state is ON, else =0<br />&nbsp; uint8_t pushSwitch_6; // =1 if state is ON, else =0<br />&nbsp; uint8_t pushSwitch_7; // =1 if state is ON, else =0<br />&nbsp; uint8_t pushSwitch_8; // =1 if state is ON, else =0<br />&nbsp; uint8_t pushSwitch_9; // =1 if state is ON, 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_PUSHSWITCH_1 5<br />#define PIN_PUSHSWITCH_2 6<br />#define PIN_PUSHSWITCH_3 7<br />#define PIN_PUSHSWITCH_4 8<br />#define PIN_PUSHSWITCH_5 9<br />#define PIN_PUSHSWITCH_6 10<br />#define PIN_PUSHSWITCH_7 11<br />#define PIN_PUSHSWITCH_8 12</p><br /><p>void setup()<br />{<br />&nbsp; RemoteXY_Init ();</p><p>&nbsp; pinMode (PIN_PUSHSWITCH_1, OUTPUT);<br />&nbsp; pinMode (PIN_PUSHSWITCH_2, OUTPUT);<br />&nbsp; pinMode (PIN_PUSHSWITCH_3, OUTPUT);<br />&nbsp; pinMode (PIN_PUSHSWITCH_4, OUTPUT);<br />&nbsp; pinMode (PIN_PUSHSWITCH_5, OUTPUT);<br />&nbsp; pinMode (PIN_PUSHSWITCH_6, OUTPUT);<br />&nbsp; pinMode (PIN_PUSHSWITCH_7, OUTPUT);<br />&nbsp; pinMode (PIN_PUSHSWITCH_8, OUTPUT);</p><p>&nbsp; // TODO you setup code</p><p>}</p><p>void loop()<br />{<br />&nbsp; RemoteXY_Handler ();</p><p>&nbsp; digitalWrite(PIN_PUSHSWITCH_1, (RemoteXY.pushSwitch_1==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_PUSHSWITCH_2, (RemoteXY.pushSwitch_2==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_PUSHSWITCH_3, (RemoteXY.pushSwitch_3==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_PUSHSWITCH_4, (RemoteXY.pushSwitch_4==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_PUSHSWITCH_5, (RemoteXY.pushSwitch_5==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_PUSHSWITCH_6, (RemoteXY.pushSwitch_6==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_PUSHSWITCH_7, (RemoteXY.pushSwitch_7==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_PUSHSWITCH_8, (RemoteXY.pushSwitch_8==0)?LOW:HIGH);</p><p>&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer<br />&nbsp; // do not call delay()</p><br /><p>}</p>]]></description>
			<author><![CDATA[null@example.com (lj4365)]]></author>
			<pubDate>Sun, 04 Jun 2023 16:01:10 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5140#p5140</guid>
		</item>
	</channel>
</rss>
