<?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=7221" />

<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>2011-05-20T03:18:47+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=7221</id>
<entry>
<author><name><![CDATA[suv23]]></name></author>
<updated>2011-05-20T03:18:47+01:00</updated>
<published>2011-05-20T03:18:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7221&amp;p=31296#p31296</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7221&amp;p=31296#p31296"/>
<title type="html"><![CDATA[gpio]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7221&amp;p=31296#p31296"><![CDATA[
this is my code..<br /><br /> Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click<br />        Dim sensor As Integer<br /><br />        'motor forward<br />        rcservo_SendCPWM(RCSERVO_PINS1, 10000, 5000)  'pwm at full speed<br />        rcservo_SendCPWM(RCSERVO_PINS2, 10000, 5000)  'pwm at full speed<br />        rcservo_OutPin(RCSERVO_PINS3, 0) 'output low pin 3<br />        rcservo_OutPin(RCSERVO_PINS4, 1) 'output high pin 4<br />        rcservo_OutPin(RCSERVO_PINS5, 1) 'output high pin 5<br />        rcservo_OutPin(RCSERVO_PINS6, 0) 'output low pin 6<br />        rcservo_OutPin(RCSERVO_PINS7, 0) 'output low pin 7<br /><br />       <span style="font-weight: bold">  sensor = rcservo_InPins(RCSERVO_PINS7)<br />           If sensor = 1 Then<br />            rcservo_OutPin(RCSERVO_PINS3, 0) 'output low pin 3<br />            rcservo_OutPin(RCSERVO_PINS4, 0) 'output high pin 4<br />            rcservo_OutPin(RCSERVO_PINS5, 0) 'output high pin 5<br />            rcservo_OutPin(RCSERVO_PINS6, 0) 'output low pin 6</span><br /><br />        Else<br />            'motor move reverse<br /><br />            rcservo_SendCPWM(RCSERVO_PINS1, 10000, 5000)  'pwm at full speed<br />            rcservo_SendCPWM(RCSERVO_PINS2, 10000, 5000)  'pwm at full speed<br />            rcservo_OutPin(RCSERVO_PINS3, 1) 'output high pin 3<br />            rcservo_OutPin(RCSERVO_PINS4, 0) 'output low pin 4<br />            rcservo_OutPin(RCSERVO_PINS5, 0) 'output low pin 5<br />            rcservo_OutPin(RCSERVO_PINS6, 1) 'output high pin 6<br />        End If<br /><br />    End Sub<br /><br /><br /><br /><br />i want the bold code function if the pins 7 receive 5v from other source, it will off the pins3,4,5, and 6..but the code not function properly..any ideas??<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2592">suv23</a> — Fri May 20, 2011 3:18 am</p><hr />
]]></content>
</entry>
</feed>