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.

Monday, November 12, 2007

[oopic] oEvent allows to turn OFF the oTune but not turn ON

I'm running an oEvent via an oWire

Code:

...
T as oTone(21, 120, 1)

sub e_code()
T.Operate = 0
end sub
...


so normally the beeper is on, then as I press green LED (button 5) the beeper turns off, and when I let go of the button it comes back on.

However if I initialize the beeper to be off, and change the T.Operate = 1, then it doesn't work. the beeper stays off the whole time.
I don't have the exact code at the moment, but I can find it and copy/paste if needed.

Thank you!



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: