<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=17&amp;t=6474" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2010-08-10T01:03:57+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=6474</id>
<entry>
<author><name><![CDATA[RoWayne]]></name></author>
<updated>2010-08-10T01:03:57+01:00</updated>
<published>2010-08-10T01:03:57+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6474&amp;p=27824#p27824</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6474&amp;p=27824#p27824"/>
<title type="html"><![CDATA[Roboard Simple Example of Digital IO]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6474&amp;p=27824#p27824"><![CDATA[
Thanks very much! That was exactly the example I was looking for. Now I just have to build the roboio.lib for MSDEV 6.0! It seems to be fighting me with the various DEFS needed. right now it has initialize errors.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1824">RoWayne</a> — Tue Aug 10, 2010 1:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2010-08-04T04:42:09+01:00</updated>
<published>2010-08-04T04:42:09+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6474&amp;p=27760#p27760</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6474&amp;p=27760#p27760"/>
<title type="html"><![CDATA[Re: Roboard Simple Example of Digital IO]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6474&amp;p=27760#p27760"><![CDATA[
<dl class="codebox"><dt>Code: </dt><dd><code>#include &lt;stdio.h&gt;<br />#include &lt;roboard.h&gt;<br /><br />int main&#40;&#41; &#123;<br />    int val;<br /><br />    roboio_SetRBVer&#40;RB_100&#41;;  // set the RoBoard version<br />    // roboio_SetRBVer&#40;RB_110&#41;;  // use this instead if your RoBoard is RB-110<br /><br />    // use all PWM channels as GPIO channels<br />    if &#40;rcservo_Initialize&#40;RCSERVO_USENOCHANNEL&#41; == false&#41;<br />    &#123;<br />        printf&#40;&quot;ERR: rcservo_Initialize&#40;&#41; fails &#40;%s&#41;!\n&quot;, roboio_GetErrMsg&#40;&#41;&#41;;<br />        return -1;<br />    &#125;<br /><br />    printf&#40;&quot;out logic 1 on PWM channel 0 &#40;pin: S1&#41;\n&quot;&#41;;<br />    rcservo_Outp&#40;0, 1&#41;;<br />    getchar&#40;&#41;;<br /><br />    printf&#40;&quot;out logic 0 on PWM channel 0 &#40;pin: S1&#41;\n&quot;&#41;;<br />    rcservo_Outp&#40;0, 0&#41;;<br />    getchar&#40;&#41;;<br /><br />    printf&#40;&quot;read digital input from PWM channel 1 &#40;pin: S2&#41;\n&quot;&#41;;<br />    val = rcservo_Inp&#40;1&#41;;<br />    printf&#40;&quot;the value of digital input is %d\n&quot;, val&#41;;<br />    getchar&#40;&#41;;<br /><br />    rcservo_Close&#40;&#41;;<br />    return 0;<br />&#125;<br /></code></dd></dl><br /><br /><img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1542">roboard</a> — Wed Aug 04, 2010 4:42 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[RoWayne]]></name></author>
<updated>2010-08-04T02:27:09+01:00</updated>
<published>2010-08-04T02:27:09+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6474&amp;p=27758#p27758</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6474&amp;p=27758#p27758"/>
<title type="html"><![CDATA[Roboard Simple Example of Digital IO]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6474&amp;p=27758#p27758"><![CDATA[
I have the Roboard, loaded the OS, have MS development studio and a pretty good programmer. However, all the examples I find for the Roboard are to control a complex organization of Servos (Play, replay, etc). <br /><br />Does anyone have the simplest main() loop code example minimum which can designate a pin for digital input and a pin for digital output? From that I should be able to program till the late hours of the night. <br /><br />The available downloads (that I have found) from the Roboard site all deal with PWM/Servos. <br /><br />I have done a lot of programming in various languages and using various processors (embedded or other) but seem to have a hard time finding the examples to get going on this new project of mine.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1824">RoWayne</a> — Wed Aug 04, 2010 2:27 am</p><hr />
]]></content>
</entry>
</feed>