<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Button item behavior has changed]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1755&amp;type=atom" />
	<updated>2024-12-28T00:38:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1755</id>
		<entry>
			<title type="html"><![CDATA[Re: Button item behavior has changed]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5828#p5828" />
			<content type="html"><![CDATA[<p>@Daba - your response is<strong> 2H</strong>ard for me to write... Your signature, of course.</p>]]></content>
			<author>
				<name><![CDATA[TheMrVon]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2968</uri>
			</author>
			<updated>2024-12-28T00:38:34Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5828#p5828</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Button item behavior has changed]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5716#p5716" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2024-10-13T00:24:41Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5716#p5716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Button item behavior has changed]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5361#p5361" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2024-02-20T07:16:03Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5361#p5361</id>
		</entry>
</feed>
