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

Re: [oopic] Object creation with initial values.

I tried this with oServo and it too didn't work. It appears that the
IOline isn't in the correct place - You can get the servo to at least
run if you put the IOline as the first position - But then others don't
get correct values - So it seems like the initializer is not correct
with oServo and oServoX, which is the one that I tried. I'll try to get
a better, or more informed answer soon.

DLC

m.lisowski wrote:
> 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
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------



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: