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.

Thursday, October 11, 2007

[oopic] Object creation with initial values.

Hi,
I wanted to create a few servo object in my program with initial
values, so that I can save some lines with assignment of each single
property for each servo.
I tried to use the code:
Dim S1V As New oServo(32,29,22,0,0,1)
but it doesn't work. There is no compilation error, but the servo
doesn't move at all, even to initial position (32). IO line is correct
and number of arguments too, so why it doesn't work?

My test function is:

Sub main()

Do
S1V=50
Delay=300
S1V=32
Delay=300
S1V=10
Delay=300
S1V=32
Delay=300
Loop

End Sub


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: