<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Compile error when trying to use led indicator]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1650</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1650&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Compile error when trying to use led indicator.]]></description>
		<lastBuildDate>Thu, 20 Apr 2023 20:36:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Compile error when trying to use led indicator]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5108#p5108</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (3ratrod)]]></author>
			<pubDate>Thu, 20 Apr 2023 20:36:01 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5108#p5108</guid>
		</item>
	</channel>
</rss>
