<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Compile error when trying to use led indicator]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1650&amp;type=atom" />
	<updated>2023-04-20T20:36:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1650</id>
		<entry>
			<title type="html"><![CDATA[Compile error when trying to use led indicator]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5108#p5108" />
			<content type="html"><![CDATA[<p>hi,</p><p>This is my first post to this community. </p><p>I&#039;ve spent hours trying to resolve a compile error issue when trying to use:</p><p>if (digitalRead(12) == HIGH) // if pin 12 enjoyed a high level voltage<br />&nbsp; &nbsp; RemoteXY.led_1_r = 255;&nbsp; &nbsp;// then turn on red light<br />&nbsp; else&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // else<br />&nbsp; &nbsp; RemoteXY.led_1_r = 0;&nbsp; &nbsp; &nbsp;// turn off red</p><p>I get the following error:</p><p>C:\Users\3ratr\Downloads\project-2023-04-19-23-02-49\project\project.ino: In function &#039;void loop()&#039;:<br />C:\Users\3ratr\Downloads\project-2023-04-19-23-02-49\project\project.ino:128:14: error: &#039;struct&lt;unnamed&gt;&#039; has no member named &#039;led_1_r&#039;<br />&nbsp; &nbsp; &nbsp;RemoteXY.led_1_r = 255;&nbsp; &nbsp;// then turn on red light<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~<br />C:\Users\3ratr\Downloads\project-2023-04-19-23-02-49\project\project.ino:130:14: error: &#039;struct&lt;unnamed&gt;&#039; has no member named &#039;led_1_r&#039;<br />&nbsp; &nbsp; &nbsp;RemoteXY.led_1_r = 0;&nbsp; &nbsp; &nbsp;// turn off red<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~</p><p>exit status 1</p><p>Compilation error: &#039;struct&lt;unnamed&gt;&#039; has no member named &#039;led_1_r&#039;</p><p>I&#039;ve spent hours trying to resolve, but to no avail. Any help in resolving this problem is greatly appreciated.</p><p>- Thanks, Dick</p>]]></content>
			<author>
				<name><![CDATA[3ratrod]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2424</uri>
			</author>
			<updated>2023-04-20T20:36:01Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5108#p5108</id>
		</entry>
</feed>
