Are there any LCD Programs using the BS2sx?
Are there any programs for the BS2x available to use LCDs in general and the Parallax "LCD Terminal AppMod" in particular? (This accessory was at one time sold by Parallax) I searched the Forum for any LCD programs, and came up with nothing.
I like to use one of the inexpensive serial LCDs available on the net. ( KTM-S1201 @ $0.95 each)
Any suggestions or comments are appreciated.
I like to use one of the inexpensive serial LCDs available on the net. ( KTM-S1201 @ $0.95 each)
Any suggestions or comments are appreciated.
Comments
The sample code you referred to was exactly what I was looking for, I have that setup with a BS2sx.
But in general, I was looking for samples of code using the Hitachi HD4480 or the NEC D7225 LCD Driver chips. As you may be aware, The HD4480 type controller is the de-facto standard for LCD displays, and is used in many types of LCDs by different manufacturers. The NEC chip is used in the $0.95 Serial LCD display.
I am somewhat surprised that not more users have written programs to use LCDs in general; like I mentioned before, a search on that subject did not bring any results.
BTW I have never used a STAMP before and obtained the parts a few years ago in anticipation of working with it some day when I had more time. That day has now come and I like to start doing something with it.
I am in the process now of finding out what kind of information and sample programs are available to help me to learn how to program these devices.
In the mean time I am running in a syntax problem I don't understand and can not find any reference to. It occurs in any program I download from the web site. (and I obviously did not write myself.) As an example, here is an offending line in a program I found describing the use of the BS1 with an LCD.
SYMBOL DATA_n = 7 ' Bits are shifted out this pin # to 7219.
The bold letters are put on a black background and the following window appears
Error
Expected ":" or end of line
What does that mean? What does the symbol ":" represent? Like I said, it happens all the time in any program I load in and I can not find a way to avoid this error statement.
SYMBOL <name> = <constant>
And you write this for the BS2 models
<name> CON <constant>
Unfortunately, the Stamp Editor doesn't give you a helpful message about this. It just doesn't understand the other form. There was a document on converting BS1 programs to BS2 syntax, but I don't happen to have a link to it. You might be able to find it by browsing through the titles of the documentation in the Downloads section under Stamp Documentation.
BTW - Too bad that there is no place where you can look up what error messages are trying to tell you, most versions of BASIC do have them.
I loaded in the sample program for the BS2sx and the LCD Terminal AppMod. using the BASIC STAMP Editor. After checking for Syntax Errors and finding everything OK, I checked "Run" , the program gets downloaded into the chip, the Editor prints that it has succesfully tokenized the program, but nothing happens. What do I suppose to see after the program is downloaded? Doesn't the uP start executing the BASIC program? Or do I have to do something else to have it doing so?
(I use a USB to RS232 adapter, and a Window appears showing that there is a connection and a moving green bar indicating data is being transfered successfully)
' {$STAMP BS2sx}
' {$PBASIC 2.5}
Those two lines were prompted in by the Editor as it inquired what STAMP I wanted to use and which version of Basic it was written for. The program itself claims that the program has been written in such a way that any stamp can be used, and you will be prompted which one you like to use. That apparently did not work as intended.