<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Slider: negative values, if >100.]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1089</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1089&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Slider: negative values, if >100..]]></description>
		<lastBuildDate>Thu, 09 Jul 2020 00:57:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Slider: negative values, if >100.]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=3172#p3172</link>
			<description><![CDATA[<div class="quotebox"><cite>Guillaume wrote:</cite><blockquote><p>As any variable of type int8_t, range is -128 to 127, and will wrap around when set value is out of this range. The slider value can be -100 to 100 if &quot;center&quot; is set to Middle, else 0 to 100. I agree that a better resolution (int16_t) would be nice.</p></blockquote></div><p>I&#039;m not sure if that would help... finger position resolution on phone touch screens is pretty course.&nbsp; Nudge up/down buttons could be implemented, but will require the clunky &quot;updateInputs&quot; fix.</p>]]></description>
			<author><![CDATA[null@example.com (Daba)]]></author>
			<pubDate>Thu, 09 Jul 2020 00:57:20 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=3172#p3172</guid>
		</item>
		<item>
			<title><![CDATA[Re: Slider: negative values, if >100.]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=3170#p3170</link>
			<description><![CDATA[<p>As any variable of type int8_t, range is -128 to 127, and will wrap around when set value is out of this range. The slider value can be -100 to 100 if &quot;center&quot; is set to Middle, else 0 to 100. I agree that a better resolution (int16_t) would be nice.</p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Wed, 08 Jul 2020 21:50:21 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=3170#p3170</guid>
		</item>
		<item>
			<title><![CDATA[Slider: negative values, if >100.]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=3165#p3165</link>
			<description><![CDATA[<p>I need to use PWM with the slider so i did:</p><div class="codebox"><pre><code>RemoteXY.slider=random(0,100);</code></pre></div><p>I get correctly values from to 0 to 100. When i add:</p><div class="codebox"><pre><code>RemoteXY.slider= map(RemoteXY.slider, 0, 100, 0, 255);</code></pre></div><p>I get negative values. So the RemoteXY.slider variable isn&#039;t able to use values greater than 100, in fact passing random(0,255), i have negative values again. I think a good range could be (0,1023) like a real potentiometer.<br />Thanks</p>]]></description>
			<author><![CDATA[null@example.com (salsedine)]]></author>
			<pubDate>Wed, 08 Jul 2020 14:37:23 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=3165#p3165</guid>
		</item>
	</channel>
</rss>
