This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Wednesday, July 16, 2008

[oopic] Re: Help with OO code

That works! Thanks Richard. I think I understand it a little better
now. I hadn't taken the data width into consideration (if that's the
correct term?)It's a lot more jittery than it is with procedural code
for some reason. With the OO it hunts a lot too but I think there's a
solution to that that I read about earlier. Many thanks.
Mike M.
--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> An oWire is a 1 bit bus. So use oBus to transfer 8 bit things like:
>
> Dim Knob As New oKnobX
> Dim Servo As New oServoX
> Dim Bus As New oBus
>
> Sub main()
>
> Knob.IOLine = 1
> Knob.Operate = cvTrue
>
> Servo.IOLine = 31
> Servo.Operate = cvTrue
>
> Bus.Input.Link(Knob)
> Bus.Output.Link(Servo)
> Bus.Operate = cvTrue
>
> End Sub
>
> This works with V6 and a B.2.2+ chip. I am watchin the output with
a
> scope. The output changes from 0.6 mS to 2.3 mS (more or less).
>
> Richard
>

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

No comments: