PS/2 Keyboard with LCD Display interface help
RussM
Posts: 27
I am looking for some code that interfaces a PS/2 keyboard with Parallax 4x20 LCD Display, preferably something that incorporates FullDuplexSerial.spin. All the code that I found from the website uses other display sources and I am having a hard time converting the code to use an LCD Display. Any help is greatly appreciated!
Comments
Edit: I am using the keyboard driven given from http://obex.parallax.com/objects/56/. I am trying to incorporate this driver with FullSerialDuplex.spin. In Keyboard_Demo.spin I have modified the last bit of code to look like this, however all that is being printed to the screen for each key is "\". Would you know why this is happening?
'echo keystrokes in hex
repeat
term.hex(kb.getkey,3)
TEST := term.out(" ")
LCD.tx(TEST)
Double Edit: I modified the code to be as follows and it works fine for values 0-9, now just to get it to print out decimal points and carriage returns.
'echo keystrokes in hex
repeat
LCD.hex(kb.getkey,1)
I whipped up the attached program in about three minutes -- works like a champ.