Hello,
my English is not so good. But I hope we can still my little problem solved.
I have a LK204-25.
I would use the display in "poll mode".
I use it with BasicStamp BS2E.
I use the command "SEROUT DisplayOut, Baud, [254, 79]" at initiate Auto-Transmit-Key-Presses -Off.
Then I want with the command "SEROUT DisplayOut, Baud, [254, 38]" the signs read (Poll Key Press).
Then I read with "SERIN DisplayIn , baud, 100, NO_DATA, [key code]" the characters.
I get the sign but only decimal 255 back. No matter what button I press.
By the way it works with "Auto Transmit Key Presses On" perfect. What am I doing wrong?
Cordial greetings from Sweden
Torsten
Keyproblem with LK204-25 (solved)
Keyproblem with LK204-25 (solved)
Last edited by tmjuk on Thu Apr 09, 2009 4:14 pm, edited 1 time in total.
Hi Torsten,
Thank you for posting on the forum.
I am not very familiar with Basic Stamp, but what I can say is that you are correct in the commands you send to get the display not to transmit the key press values and only report when you send the command 254 / 38 (poll key press).
If you do not press any key after power up (no outstanding keys in the buffer), you should get a 0x00 when you send the command 254 / 38, instead of 0xFF.
I am thinking there maybe something you are missing as you execute the SEROUT / SERIN commands. You might want to check out Parallax's Basic Stamp forum.
Best Regards,
Thank you for posting on the forum.
I am not very familiar with Basic Stamp, but what I can say is that you are correct in the commands you send to get the display not to transmit the key press values and only report when you send the command 254 / 38 (poll key press).
If you do not press any key after power up (no outstanding keys in the buffer), you should get a 0x00 when you send the command 254 / 38, instead of 0xFF.
I am thinking there maybe something you are missing as you execute the SEROUT / SERIN commands. You might want to check out Parallax's Basic Stamp forum.
Best Regards,
Raquel Malinis
Design and Development
Matrix Orbital
Design and Development
Matrix Orbital
Hi Torsten,
Great to hear that you got the problem solved. The baud rate of your display can be changed later on if you'd like to communicate faster, you can check out your manual for more info once you are comfortable with the display.
Happy development, and best wishes from Canada,
~Troy
Great to hear that you got the problem solved. The baud rate of your display can be changed later on if you'd like to communicate faster, you can check out your manual for more info once you are comfortable with the display.
Happy development, and best wishes from Canada,
~Troy
Troy Clark
Design & Development
Matrix Orbital
Design & Development
Matrix Orbital