Simon Ford
/
keyboard
main.cpp
- Committer:
- simon
- Date:
- 2009-11-12
- Revision:
- 0:231dc8341ad9
File content as of revision 0:231dc8341ad9:
#include "mbed.h" #include "PS2ASCII.h" PS2ASCII myKeyboard(p28, p26); DigitalOut LED(LED1); int main() { while (1) { unsigned char symbol = myKeyboard.getChar(); if(myKeyboard.E0flag() == true) { //is the make code one or two bytes long? printf(" E0 "); } printf("%c", symbol); } }