<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to tieInput</title><link>https://sourceforge.net/p/prfm/wiki/tieInput/</link><description>Recent changes to tieInput</description><atom:link href="https://sourceforge.net/p/prfm/wiki/tieInput/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 27 Jan 2013 20:58:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/prfm/wiki/tieInput/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage tieInput modified by Majenko Technologies</title><link>https://sourceforge.net/p/prfm/wiki/tieInput/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,7 +1,9 @@
 Format
 ------
-* void tieInput(int in, void (*func)(int, int));
-
+~~~~
+:::C
+void tieInput(int in, void (*func)(int, int));
+~~~~
 Description
 -----------
 Connects an input to a callback function.  When the input changes the callback function gets called.  The function is passed the number of the input channel that changed, and the current value of that input channel.  Only works for digital inputs.
&lt;/pre&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 20:58:10 -0000</pubDate><guid>https://sourceforge.net747a97fb827548d517f17fcc6fbf43cd29a6c90e</guid></item><item><title>WikiPage tieInput modified by Majenko Technologies</title><link>https://sourceforge.net/p/prfm/wiki/tieInput/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -10,7 +10,7 @@
 -------

 ~~~~
-C++
+:::C
 void button_pressed(int in, int value)
 {
     if (value == 0) {
&lt;/pre&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 20:57:29 -0000</pubDate><guid>https://sourceforge.net4e064cfa693db6a0d9581dfa97f7e03ba234ebfa</guid></item><item><title>WikiPage tieInput modified by Majenko Technologies</title><link>https://sourceforge.net/p/prfm/wiki/tieInput/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -10,7 +10,7 @@
 -------

 ~~~~
-C
+C++
 void button_pressed(int in, int value)
 {
     if (value == 0) {
&lt;/pre&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 20:56:49 -0000</pubDate><guid>https://sourceforge.net4b4aaf68a9edab845df45ab12180e87bb69f0f43</guid></item><item><title>WikiPage tieInput modified by Majenko Technologies</title><link>https://sourceforge.net/p/prfm/wiki/tieInput/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="format"&gt;Format&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;void tieInput(int in, void (*func)(int, int));&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="description"&gt;Description&lt;/h2&gt;
&lt;p&gt;Connects an input to a callback function.  When the input changes the callback function gets called.  The function is passed the number of the input channel that changed, and the current value of that input channel.  Only works for digital inputs.&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;C&lt;/span&gt;
&lt;span class="n"&gt;void&lt;/span&gt; &lt;span class="n"&gt;button_pressed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;int&lt;/span&gt; &lt;span class="n"&gt;in&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;int&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; 0&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;queueSample&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hey_man&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hey_man_len&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 0&lt;span class="p"&gt;,&lt;/span&gt; 0&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;void&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;setInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;3&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="n"&gt;tieInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;3&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;button_pressed&lt;/span&gt;&lt;span class="p"&gt;);&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 20:56:36 -0000</pubDate><guid>https://sourceforge.net94b3fd862081436adceb5181c19628057a138c36</guid></item></channel></rss>