LCD custom characters
Archiver
Posts: 46,084
Hi all,
I'm interested in creating my own characters for an LCD. I know
how to define the character, but I'm not sure how the code should be
typed in PBASIC in order to work. As an example, here's a sample
artwork. 0s are blank and 1s are filled in. For a 5x7 grid, the
example would be:
00011
00101
11001
10001
11001
00101
00011
Here's where I have the problem. According to the LCD manual,
defining this character would require text in this format:
SEROUT 0,16416,[noparse]/noparse]254,"N",[noparse][[/noparse]0x00][noparse][[/noparse]03,05,25,17,25,05,03,00
However, this code seems to give an error with the software.
The question is how am I suppose to format for defining a special
character and for using it later in the program.
Thanks for any help that anyone can give.
David
I'm interested in creating my own characters for an LCD. I know
how to define the character, but I'm not sure how the code should be
typed in PBASIC in order to work. As an example, here's a sample
artwork. 0s are blank and 1s are filled in. For a 5x7 grid, the
example would be:
00011
00101
11001
10001
11001
00101
00011
Here's where I have the problem. According to the LCD manual,
defining this character would require text in this format:
SEROUT 0,16416,[noparse]/noparse]254,"N",[noparse][[/noparse]0x00][noparse][[/noparse]03,05,25,17,25,05,03,00
However, this code seems to give an error with the software.
The question is how am I suppose to format for defining a special
character and for using it later in the program.
Thanks for any help that anyone can give.
David
Comments
http://www.parallax.com/html_pages/downloads/software/software_LC
DCC.asp. IT has both a tool and an 'application note'.
Daniel
>
Original Message
> From: David Kissick [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_qNpqi5kBuy8SAIF7SfSrNKH1S7qqTaI-FrsCgOjHZmv9pawZb6u7Hi3JcyZSq-Z_udZiQcl2qP3LAY3o8M]geckoinc99@y...[/url
> Sent: Wednesday, October 29, 2003 3:54 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] LCD custom characters
>
>
> Hi all,
> I'm interested in creating my own characters for an
> LCD. I know
> how to define the character, but I'm not sure how the
> code should be
> typed in PBASIC in order to work. As an example,
> here's a sample
> artwork. 0s are blank and 1s are filled in. For a
> 5x7 grid, the
> example would be:
>
> 00011
> 00101
> 11001
> 10001
> 11001
> 00101
> 00011
>
> Here's where I have the problem. According to the LCD manual,
> defining this character would require text in this format:
>
> SEROUT 0,16416,[noparse]/noparse]254,"N",[noparse][[/noparse]0x00][noparse][[/noparse]03,05,25,17,25,05,03,00
>
> However, this code seems to give an error with the software.
> The question is how am I suppose to format for
> defining a special
> character and for using it later in the program.
>
> Thanks for any help that anyone can give.
>
> David
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text
> in the Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
LCD, not a serial one.
Sorry,
Daniel
>
Original Message
> From: D. Daniel McGlothin [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=XLLoCVdYk-F2cooXL34UkPoBUiQnzdnl19r97pvTY3YfM00mtr_5eHp7LxFHLFTFQxSsjuf8PpBPEyl3ng]ddm@m...[/url
> Sent: Wednesday, October 29, 2003 4:37 PM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]basicstamps] LCD custom characters
>
>
> You might try Parallax's LCD Character Creator at
> http://www.parallax.com/html_pages/downloads/software/s
> oftware_LCDCC.asp. IT has both a tool and an
> 'application note'.
>
> Daniel
>
> >
Original Message
> > From: David Kissick [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=uDvKiEgqiN-QzHT2aSgR5OeozPE2NEzWeJffg6F_y8QgKKR4VK-Eq6hhpjF0nYC-4IUJel1FDMUIJg]geckoinc99@y...[/url
> > Sent: Wednesday, October 29, 2003 3:54 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] LCD custom characters
> >
> >
> > Hi all,
> > I'm interested in creating my own characters for an
> > LCD. I know
> > how to define the character, but I'm not sure how the
> > code should be
> > typed in PBASIC in order to work. As an example,
> > here's a sample
> > artwork. 0s are blank and 1s are filled in. For a
> > 5x7 grid, the
> > example would be:
> >
> > 00011
> > 00101
> > 11001
> > 10001
> > 11001
> > 00101
> > 00011
> >
> > Here's where I have the problem. According to the
> LCD manual,
> > defining this character would require text in this format:
> >
> > SEROUT 0,16416,[noparse]/noparse]254,"N",[noparse][[/noparse]0x00][noparse][[/noparse]03,05,25,17,25,05,03,00
> >
> > However, this code seems to give an error with the
> software.
> > The question is how am I suppose to format for
> > defining a special
> > character and for using it later in the program.
> >
> > Thanks for any help that anyone can give.
> >
> > David
Try it like this:
SEROUT 0, 16416, [noparse][[/noparse]254, 64, 03, 05, 25, 17, 25, 05, 03, 00, 254, 128]
You didn't say which serial LCD you're using so I'm assuming the SEETRON
BPI-216 based on your code. The first two bytes move the cursor to the
start of CGRAM (where custom character data is store), the final two
bytes return the cursor to the DDRAM (visible screen).
See www.seetron.com for additional notes.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: David Kissick [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=6H7TmI2Cr4PMttj_qDNIinS9mNn13p9lDlLJ5y2CuimJ99vm4nJ4TcdR34Off7EIZTNKhoic6nSe3EI]geckoinc99@y...[/url
Sent: Wednesday, October 29, 2003 2:54 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] LCD custom characters
Hi all,
I'm interested in creating my own characters for an LCD. I know how
to define the character, but I'm not sure how the code should be typed
in PBASIC in order to work. As an example, here's a sample artwork. 0s
are blank and 1s are filled in. For a 5x7 grid, the example would be:
00011
00101
11001
10001
11001
00101
00011
Here's where I have the problem. According to the LCD manual, defining
this character would require text in this format:
SEROUT 0,16416,[noparse]/noparse]254,"N",[noparse][[/noparse]0x00][noparse][[/noparse]03,05,25,17,25,05,03,00
However, this code seems to give an error with the software.
The question is how am I suppose to format for defining a special
character and for using it later in the program.
Thanks for any help that anyone can give.
David
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
brackets?
Try:
SEROUT 0,16416,[noparse][[/noparse]254,"N",0,3,5,25,17,25,05,03,0]
hth,
Daniel
>
Original Message
> From: David Kissick [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=uD-vniTJSQ2NECj1iNJHKnaiuKZbF7nkB4aWgAjxmmvXT-0R6CL-Dx8FKhc0Q3_pXaMtBpVlLBkDsJQQpF4]geckoinc99@y...[/url
> Sent: Wednesday, October 29, 2003 3:54 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] LCD custom characters
>
>
> Hi all,
> I'm interested in creating my own characters for an
> LCD. I know
> how to define the character, but I'm not sure how the
> code should be
> typed in PBASIC in order to work. As an example,
> here's a sample
> artwork. 0s are blank and 1s are filled in. For a
> 5x7 grid, the
> example would be:
>
> 00011
> 00101
> 11001
> 10001
> 11001
> 00101
> 00011
>
> Here's where I have the problem. According to the LCD manual,
> defining this character would require text in this format:
>
> SEROUT 0,16416,[noparse]/noparse]254,"N",[noparse][[/noparse]0x00][noparse][[/noparse]03,05,25,17,25,05,03,00
>
> However, this code seems to give an error with the software.
> The question is how am I suppose to format for
> defining a special
> character and for using it later in the program.
>
> Thanks for any help that anyone can give.
>
> David
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text
> in the Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/