<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — user setup and loop]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=922&amp;type=atom" />
	<updated>2020-03-13T00:36:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=922</id>
		<entry>
			<title type="html"><![CDATA[Re: user setup and loop]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2684#p2684" />
			<content type="html"><![CDATA[<p>kinda true unless you have linked output pins to buttons.</p><p>resulting code below the #pragma pack(pop) </p><p>#define PIN_FANSWITCH D4<br />#define PIN_HUMIDIFIERSWITCH D4<br />#define PIN_HEATERSWITCH D4</p><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; <br />&nbsp; pinMode (PIN_FANSWITCH, OUTPUT);<br />&nbsp; pinMode (PIN_HUMIDIFIERSWITCH, OUTPUT);<br />&nbsp; pinMode (PIN_HEATERSWITCH, OUTPUT);<br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; </p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />&nbsp; digitalWrite(PIN_FANSWITCH, (RemoteXY.fanSwitch==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_HUMIDIFIERSWITCH, (RemoteXY.humidifierSwitch==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_HEATERSWITCH, (RemoteXY.heaterSwitch==0)?LOW:HIGH);<br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer</p>]]></content>
			<author>
				<name><![CDATA[chrismolloy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1257</uri>
			</author>
			<updated>2020-03-13T00:36:09Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2684#p2684</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: user setup and loop]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2665#p2665" />
			<content type="html"><![CDATA[<p>When you change something in the editor, you only need to copy what is between the #pragma pack directives into your code.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2020-03-11T12:10:35Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2665#p2665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: user setup and loop]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2663#p2663" />
			<content type="html"><![CDATA[<p>Maybe you could make it optional.<br />I may revise a form a lot of times until I like it.&nbsp; That means editing that file numerous times.</p><p>Is there any work being done on this app?</p>]]></content>
			<author>
				<name><![CDATA[chrismolloy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1257</uri>
			</author>
			<updated>2020-03-10T23:34:30Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2663#p2663</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: user setup and loop]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2659#p2659" />
			<content type="html"><![CDATA[<p>It is good idea. But for beginners it will be hard. You can do it yourself.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2020-03-10T04:07:40Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2659#p2659</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[user setup and loop]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2654#p2654" />
			<content type="html"><![CDATA[<p>it would make it easier to update screen design if <br />setup() included userSetup() call and Loop() included userLoop() call<br />then you can use another tab for your code with userSetup() and userLoop() in it.<br />This way you can change the design of the screens and simply copy paste the code into you code and it automatically links in to your code.</p>]]></content>
			<author>
				<name><![CDATA[chrismolloy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1257</uri>
			</author>
			<updated>2020-03-10T03:21:13Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2654#p2654</id>
		</entry>
</feed>
