PS2Keyboard example code

I am having trouble with the code Examples for PS2 and PS2 Ext.
I get incorrect key codes coming back from the keyboard.read() method.

I have checked my hardware and that looks to be OK.

I’m using Arduino0017 on Ubuntu 9.04 and the keyboard is a generic China built unit Colorbit model KB-1807.

I get more consistent results using PS2KeyboardExt.cpp but the return code is only correct on some keys every 4 presses.

Any offers of help?

Matt

the return code is only correct on some keys every 4 presses

Which keys are returning incorrect codes? Is it possible that the keyboard is doing some sort of internal shift processing? Is it consistent that some keys work right, and others are wrong (or, at least, not what you expected), every time?

Ran

Thanks for the reply

the "k" is working every 4 presses but the "o" is not for example.

I will go and try some more keys and list them later.

Cheers

Matt Baker