<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to readInput</title><link>https://sourceforge.net/p/prfm/wiki/readInput/</link><description>Recent changes to readInput</description><atom:link href="https://sourceforge.net/p/prfm/wiki/readInput/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 27 Jan 2013 21:04:29 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/prfm/wiki/readInput/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage readInput modified by Majenko Technologies</title><link>https://sourceforge.net/p/prfm/wiki/readInput/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="format"&gt;Format&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;readInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h2 id="description"&gt;Description&lt;/h2&gt;
&lt;p&gt;Get the current value of an input channel.  If the channel is set to digital, it will be either 0 or 1; 0 is "pressed", and 1 is "not pressed" (digital inputs are "active low").  If it is set to analog, the value will be between 0 and 4095.&lt;/p&gt;
&lt;h2 id="example"&gt;Example&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;button_pressed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;readInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Majenko Technologies</dc:creator><pubDate>Sun, 27 Jan 2013 21:04:29 -0000</pubDate><guid>https://sourceforge.net846fd8d3414cad8768482035aa9a051125fe00e2</guid></item></channel></rss>