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, March 5, 2008

[oopic] Re: event code on C.1.1+

--- In oopic@yahoogroups.com, Brian Lloyd <brian-wb6rqn@...> wrote:
>
>
> On Mar 4, 2008, at 9:58 PM, ooPIC Tech Support wrote:
>
> > Brian,
> >
> > Events are broken in the compiler for C1.1+. The firmware is
fine,
> > but the compiler needs rev'd. The developer is working on it now.
>
> I know that it is broken but is it enough not-broken to allow some
> event programming to work if I hold my tongue just right? Or is it
so
> broken that no amount of effort will make events work? I am
planning
> to introduce events to two of my students today and I am hoping
that
> they can get something simple to work even if I have to slap on
some
> band-aids.
>
> Brian Lloyd
> Granite Bay Montessori School 9330 Sierra College Bl
> brian AT gbmontessori DOT com Roseville, CA 95661
> +1.916.367.2131 (voice) +1.791.912.8170 (fax)
>
> PGP key ID: 12095C52A32A1B6C
> PGP key fingerprint: 3B1D BA11 4913 3254 B6E0 CC09 1209 5C52 A32A
1B6C
>


From a recent thread, events are so broken you can't even link
CPU.Hz1 to an LED.

HOWEVER, I have this code running on a B.2.2+ chip and it WAS
compiled with V6:

' Code for V6 of compiler

Dim BLINK As New oEvent
Dim WIRE As New oWire
Dim LED As New oDIO1

Sub Main()
LED.IOLine = 7
LED.Direction = cvOutput
WIRE.Input.Link(ooPIC.Hz1)
WIRE.Output.Link(BLINK.Operate)
WIRE.Operate = cvTrue
End Sub

Sub BLINK_Code()
LED = cvOn
ooPIC.Delay = 250
LED = cvOff
ooPIC.Delay = 250
End Sub

I wouldn't necessarily buy into the problem being totally V6
related. I might believe V6 & C.1.1 combined are an issue. Or, more
likely, I wouldn't believe any of it unless I tested it myself.

Is there any way you can get your hands on B.2.2+ chips? Depending
on you time requirements, perhaps

http://www.junun.org/MarkIII/Info.jsp?item=29

Tim has always shipped
my stuff pretty quick.

If you get B.2.2+ chips, there is no reason NOT to back up to V5. It
certainly lacks the 'gee whiz' objects and features of V6 and it has
warts but, for the most part, it works and its' deficiencies are well
understood.

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: