Newbie LCD Question

Discuss PIC and electronic related things

Moderators: David Barker, Jerry Messina

Post Reply
powertek
Posts: 2
Joined: Tue Oct 21, 2008 8:42 pm
Location: Michigan

Newbie LCD Question

Post by powertek » Fri Oct 24, 2008 9:53 pm

I am new to the PIC and programming. Swordfish seemed like an easy way to learn. However, In the demo files that come with Swordfish SE, there is an example of how to utilize an LCD.

If I understand the WriteAt command correctly the (1,1,"Hello") means to write the word Hello starting at Line 1, Position 1. Or 2,1 would be line 2 position 1.

I have a 4 line 20 character LCD module which is Hitachi HD44780 compatible. Am I correct in assuming that if the above statements are true and I wanted XX text on Line 3 position 1, and XX on Line 4 position 1, I could simply input that as shown below ?

SetAllDigital
Cls
WriteAt(1,1,"Hello")
WriteAt(2,1,"World")
WriteAt(3,1,"Good")
WriteAt(4,1,"Evening")

Thanks in advance

Post Reply