<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Button item behavior has changed]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1755</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1755&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Button item behavior has changed.]]></description>
		<lastBuildDate>Sat, 28 Dec 2024 00:38:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Button item behavior has changed]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5828#p5828</link>
			<description><![CDATA[<p>@Daba - your response is<strong> 2H</strong>ard for me to write... Your signature, of course.</p>]]></description>
			<author><![CDATA[null@example.com (TheMrVon)]]></author>
			<pubDate>Sat, 28 Dec 2024 00:38:34 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5828#p5828</guid>
		</item>
		<item>
			<title><![CDATA[Re: Button item behavior has changed]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5716#p5716</link>
			<description><![CDATA[<div class="quotebox"><cite>remotexy wrote:</cite><blockquote><div class="codebox"><pre><code>uint8_t prevButtonState = 0;
void loop () {
  if ((RemoteXY.button_1) &amp;&amp; (!prevButtonState)) {
    // TO DO something
  }
  prevButtonState = RemoteXY.button_1;
}</code></pre></div><p>The regular behavior of the button remains unchanged, and you can continue to use it to control anything while the button is pressed:<br /></p><div class="codebox"><pre><code>void loop () {
  if (RemoteXY.button_1) {
    /*  button pressed */
  }
  else {
    /*  button not pressed */
  }
}</code></pre></div></blockquote></div><p>Easier to enter, and in my opinion, easier to interpret and understand. It treats the input and memory data as boolean values, either true or false. There&#039;s no need for the equates .</p>]]></description>
			<author><![CDATA[null@example.com (Daba)]]></author>
			<pubDate>Sun, 13 Oct 2024 00:24:41 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5716#p5716</guid>
		</item>
		<item>
			<title><![CDATA[Button item behavior has changed]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5361#p5361</link>
			<description><![CDATA[<p>Now, a quick press on the graphical interface button will reach the controller board. You won&#039;t have to hold the button down for a long time and wait for the board&#039;s response. You may notice that in the graphical interface, the button stays pressed until the data is transmitted to the controller. If the data is transmitted quickly enough, you may not even notice it. You gain more control by pressing the button.<br />To track the moment of button press, you can use the following code:<br /></p><div class="codebox"><pre><code>uint8_t prevButtonState = 0;
void loop () {
  if ((RemoteXY.button_1 != 0) &amp;&amp; (prevButtonState  == 0)) {
    // TO DO something
  }
  prevButtonState = RemoteXY.button_1;
}</code></pre></div><p>The regular behavior of the button remains unchanged, and you can continue to use it to control anything while the button is pressed:<br /></p><div class="codebox"><pre><code>void loop () {
  if (RemoteXY.button_1!=0) {
    /*  button pressed */
  }
  else {
    /*  button not pressed */
  }
}</code></pre></div><p>The feature has been implemented in:<br />Android app version 4.13.3<br />iOS app version 1.10.1</p><p>However, these are not the only features included in the new app version. More details about the remaining features will be provided shortly.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Tue, 20 Feb 2024 07:16:03 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5361#p5361</guid>
		</item>
	</channel>
</rss>
