Keyproblem with LK204-25 (solved)
Posted: Tue Apr 07, 2009 4:37 pm
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
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