LCD Commands
Cheech
Posts: 30
I just got my BS2p40 and I am playing with the LCD.· How do I implement some of the commands shown on page 23 of http://www.parallax.com/dl/docs/prod/audiovis/molcd4x20.pdf·?· I used one of the demos and the animation was all off.· For a simple test I just to turn the backlight on and off
but I dont know where to shove 254 70PDF said...
6.1.4 Backlight off (254 70)
This command turns the backlight of the LK204-25 off.
Comments
·· The timing of the Demo may be off because you're using the BS2p40, which is faster than a BS2.· As for the commands to turn things on and off, well they go into the SEROUT statement.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Edit: Now how do I get that into hex so I can put that in my Constants?· Or is there another way to define a constant that you dont need hex?·
Post Edited (Cheech) : 7/16/2005 4:16:17 AM GMT
·· My code didn't need any fixing.· You asked for an example of how to use the commands and I provided one.· You simply need to try them out based on the examples you're given.· And constants don't need to be in Hex, they can be in Decimal or even Binary.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
That gives me Unexpected ':' or end-of-line error
From the Stamp Editor's point of view the " , " (comma) is the end of line character, and that is not a legal line termination. Why does it think that? A CON statement (constant) can only have one legitimate character, or number following the word CON. In this case you have the " , " (comma) and " 88 " as additional characters/numbers.
These would be legitimate uses as an alternative:
CLSchar1 CON 254
CLSchart2 CON 88
SEROUT blah, blah, blah, [noparse][[/noparse]CLSchar1, CLSchar2]
OR
CLSChar VAR NIB
CLSchar = 254 + 88
SEROUT blah, blah, blah, [noparse][[/noparse]CLSchar]
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 7/16/2005 8:52:33 PM GMT
Best Regards,
Tom Lam