Need help on Seetron's BPI-261 LCD
musicbox
Posts: 5
I have the Basic Stamp II educational board and Seetron's BPI-216 LCD.· I·tried to program the·the·BS2 just to test out the LCD·but it didn't work.· I tried· Serial_LCD_Demo.BS2.TXT·to test out my LCD.· But all I am getting is garbage.
Please let me know what's going on.· Is my LCD not working or just my program?· Is there anything speical I need to do with this kind of LCD?
Please let me know what's going on.· Is my LCD not working or just my program?· Is there anything speical I need to do with this kind of LCD?
Comments
Here's the manual (with code): http://www.seetron.com/pdf/bpi_bpk.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Here is the code that I used.
' {$STAMP BS2}
' {$PBASIC 2.5}
'Program: BPKDEMS2.BS2
N9600 CON $4054
I CON 254
CLR CON 1
LINE2 CON 192
L1_C7 CON 135
PAUSE 1000
SEROUT 14, n9600, [noparse][[/noparse]I,CLR]
PAUSE 1
SEROUT 0, n9600, [noparse][[/noparse]"Hello World!"]
SEROUT 14, n9600, [noparse][[/noparse]I,LINE2, "..line 2"]
PAUSE 2000
SEROUT 14, n9600, [noparse][[/noparse]I, CLR]
PAUSE 1
SEROUT 14, n9600, [noparse][[/noparse]"Count: "]
Again:
SEROUT 14, n9600, [noparse][[/noparse]I,L1_C7]
SEROUT 14, n9600, [noparse][[/noparse]DEC B2," "]
B2 = B2+1
PAUSE 200
GOTO Again
Is there any problem with it?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
If you'll use P0, then this will work (I have ILM-216s.)· Does yours have the 2400bps jumper connected (this program is for 9600)?
Should come out with:
·Line 1· ALARM!· ALARM!
·Line 2· INTRUDER ALERT
·
Post Edited (PJ Allen) : 3/24/2006 11:35:27 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
· SEROUT LcdPin, Baud, [noparse][[/noparse]DEC myValue]
DEC converts a number to the equivalent string of ASCII characters, hence the value 123 is converted to the string "123"
Update: Corected typo (SEROUT was [noparse][[/noparse]incorrectly] SERIN).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Post Edited (Jon Williams (Parallax)) : 5/9/2006 5:28:59 PM GMT
Maybe SEROUT?
:^)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax