Interfacing a Keyboard...

I'm sure has been covered before, so my apologies beforehand; I just have not been able to find specific answers for what I'm looking for.

Anywhoozle, I purchased a PS/2 Breakout board, which is currently being shipped over here. I'd like to interface a PS/2 Keyboard and have it display text on my 128x64 Graphic LCD.

Since the breakout board is gonna be awhile, I've been trying to amuse myself by getting some of the code written. I've been having some issues however, as I just really don't understand how to go about doing this. I have looked at the 2 pages related to PS/2 Keyboards, but am just having troubles understanding it all.

http://www.arduino.cc/playground/Main/PS2Keyboard
http://www.arduino.cc/playground/Main/PS2KeyboardExt

Each page gives their own example code. My first question is, is that all that I need to have? Will it automatically detect all the letters and whatnot (as well as the additional functions in the code), or is there more to it than this?

Second question. How do I specify where I want the text that has been input to show up on the screen?

Thanks,

  • Jesse

Second question. How do I specify where I want the text that has been input to show up on the screen?

You will have to create and maintain a 'cursor location' variable in your program and update it every time you write a character or change the cursor location in your program.

Lefty