Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Your PS2 keyboard example has the clock and data lines swapped on the wiring picture on the cookbook wiki page. [http://mbed.co.uk/projects/cookbook/wiki/PS2Keyboard] Because of this, the information in the library has the same issue. In PS2ASCII(int data, int clk) - you actually have to call PS2ASCII(clock, data) for it to work. It fixes itself by calling PS2Kbd(int clk, int din);
In this case, two wrongs make it right.............
Scott