Dim lcd As New oSerialL
Sub Main()
lcd.Baud = cv9600
lcd.IOLineS = 16
lcd.InvertS = cvTrue
start:
lcd.String = "Hello" 'Text
Goto start
End Sub
the backlight of the LCD turns on but the characters do not display.
--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "ef721" <ef721@> wrote:
> >
> > Hey guys,
> >
> > I recently acquired a SparkFun Serial LCD and I am trying to control
> > it from the ooPIC. I attempted to use the oLCDSE object, but to no
> avail.
> >
> > The baud rate is 9600bps and the serial controller of the LCD is based
> > off the Hitachi 44780 chip.
> >
> > What is the code to output text onto this LCD ?
> > Here is the link to the LCD:
> > http://www.sparkfun.com/commerce/product_info.php?products_id=812
> >
> > Thank you,
> >
> > Eric
> >
>
> You would use the oSerialL object and set it up for 9600 baud.
> Connect the IOLineS LCD RX input. Connect +5 and a common ground and
> you should be good to go. I don't think you will have to invert the
> IOLineS.
>
> I wouldn't be surprised if you have to define IOLineF even though you
> don't need it. In fact, you may have to do a little testing with the
> .Busy property to determine whether you need to pull the IOLine high
> or low. In either case, use a 330 ohm resistor to do the pullup(down)
> such that .Busy becomes 0. I would not make a direct connection.
>
> I would also put a 330 ohm resistor in series with the IOLineS and Rx
> connection. These resistors don't affect the operation but can save
> an OOPic from disaster should a pin become shorted.
>
> Oh - yes, you'll have to become intimately familiar with the datasheet
> because you are going to have to write your own code (probably
> functions) to do the usual things like clear the display, etc. Just
> send the byte indicated in the datasheet.
>
> But, you should be able to write chars without any special programming
> at all.
>
> 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:
No comments:
Post a Comment