BS2pe-How to make the LCD display a variable?
nowhateve
Posts: 8
I am really new to the basic stamp.
According to the Reference Manual, it seems that the LCD only displays fixed values, such as LCDOUT [noparse][[/noparse]"Hello World!"]
Is it possible for the LCD to show a variable. Like LCDOUT[noparse][[/noparse]B1] (B1 is a variable. B1=B1-1 after each loop...)
I dont know how to achieve that.
Thank you for your help!!!
According to the Reference Manual, it seems that the LCD only displays fixed values, such as LCDOUT [noparse][[/noparse]"Hello World!"]
Is it possible for the LCD to show a variable. Like LCDOUT[noparse][[/noparse]B1] (B1 is a variable. B1=B1-1 after each loop...)
I dont know how to achieve that.
Thank you for your help!!!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Here is what I did and what I got.
B1 VAR WORD
Lcd PIN 1
LcdCls CON $01
INITIALIZATION of LCD....
Main:
Do
B1=60
LCDOUT Lcd, LcdCls, [noparse][[/noparse]B1]
PAUSE 1000
B1=B1-1
Loop
END
What I got on the LCD is a weird mark like ">"
If try LCDOUT Lcd, LcdCls, [noparse][[/noparse]"60"]
The LCD displays well.
I was wondering if I could put a variable directly into the brackets[noparse]/noparse. Or there is some particular syntax for LCDOUT to display a variable?
Thanks!