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.

Sunday, February 3, 2008

[oopic] Re: SerLCD1 (Kronos Robotics) With OOPic-R

Thanks for replying. I found that the Piggy Back matched the pin
order (Ground, +5v, Signal) of each I/O line on the 56-pin I/O
connector on my R board, so I connected the Piggy Pack to I/O line 1.

I read through the code samples provided for other microcontrollers in
the Piggy Back manual ( http://tinyurl.com/2mhqau ), but I still don't
fully understand how to control the Piggy back with an OOPic. To
display "Hello" at position 1 on line 2 using a BASIC Stamp, the code is:

SEROUT 2,84,[2,1,"Hello"]

To achieve this same result with an OOPic, would I need to do
something like this where I change the Value property three
consecutive times (the last one is a String):

Dim display As New oSerialL

Sub Main()
display.IOLineS = 1
display.Baud = cv9600
display.Operate = cvTrue
display.Value = 2 'Line 2
display.Value = 1 'Position 1
display.String = "Hello" 'Text
End Sub

If not, would you happen to know what code I should use instead?

Also, I have one other question:

I haven't tested this code yet; as long as I have the Piggy Back's +5v
and Ground wires connected properly to the OOPic, do I run any risk of
damaging the Piggy Back or the LCD as I test out different code?

Thank you again for your time,

Jason

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...> wrote:
>
> The oLCDSE is for some selected models of the Scott Edwards serial
> LCD's. Your best bet is to use an oSerialL object since you are only
> sending data to it. You will have to do your own formatting, but the
> .String ="This is a test" and .String = str$(number) methods are dead
> useful here.
>
> DLC
>
> destroyerx5 wrote:
> > Hello,
> >
> > I recently purchased a 4x20 Mark III parallel LCD (
> > http://www.junun.org/MarkIII/Info.jsp?item=36 ), along with a Kronos
> > Robotics Serial LCD Deluxe Piggy Back ( http://tinyurl.com/2n68jb ),
> > the latter of which allows a microcontroller to control the LCD
> > through a serial interface. I am planning on connecting the Piggy
> > Back to the designated Serial LCD I/O pins (line 16, +5v, and Gnd) on
> > my OOPic-R. Does anyone happen to know what OOPic object I should use
> > to control my setup? Could I use oLCDSE and change the baud rate to
> > 9600 (that of the SerLCD1 chip)? Or should I use one of the various
> > oSerial objects? Also, is the Serial LCD I/O connector the best place
> > to be connecting the Piggy Back to my board?
> >
> > Thanks for your help,
> >
> > Jason Quint
> >
> >
> >
> >
> > 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: