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, January 28, 2008

[oopic] Re: NC2004A LCD Screen with Modtronix LCD2S daughter board

I've modified the DisplayText routine to use the other method you
mentioned, And now I get a flash of a character, then the screen
switches off until the power re-cycled.

Sub DisplayText()
screen.Mode = cv10Bit
screen.Location = 0x80 ' Send string
For lp = 0 To 19
text.Location = lp
screen = text.Value
Next lp
End Sub

All single byte instructions seem to work ok, I just cannot seem to
send a string of characters to the LCD module.

Can anyone see any obvious mistake ;-)

Cheers,

Jas

--- In oopic@yahoogroups.com, "jasuk1970" <mail@...> wrote:
>
> Thanks for pointing out the obvious :)
>
> I looked at the I2C write example and it said 0x28 switches
backlight
> off (Figure 11), And it's actually 0x20!
>
> Wehoo it's working :)
>
> Well sort of, I think it's my programming skills lacking now :)
>
> Dim screen As oI2C
> Dim text As New oBuffer(20)
> Dim lp As Byte
>
> Sub Main()
> screen.Node = 0x28 ' 0x50 divided by 2
> screen.Mode = cv7Bit
> screen = 0x20 ' Backlight On
> Call CLS()
> text.VString="Hello World! "
> DisplayText()
>
> End Sub
>
> Sub DisplayText()
> screen.Mode = cv7Bit
> screen = 0x80 ' Send string
> For lp = 0 To 19
> text.Location = lp
> screen = text.Value
> Next lp
> End Sub
>
> Sub CLS()
> screen.Mode = cv7Bit
> screen = 0x8c
> End Sub
>
> Sub BackLightOff()
> screen.Mode = cv7Bit
> screen = 0x28
> End Sub
>
> The screen clears but I cannot get any text to appear.
>
> I think it is I don't understand the IC2 stuff just yet.
>
> Thanks for any help.
>
> Cheers,
>
> Jas
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@>
> wrote:
> >
> > What should happen? The 0x28 command just turns the screen on.
> Send
> > some text to it and see what happens. Carefully read through the
> > commands set and experiment. you should get something to go as
> long as
> > you put in the pull up resistor on the SDA line as we said
earlier
> in
> > this thread.
> >
> > DLC
> >


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: