A version of the PS/2 library customized for MbedConsole. Also includes a few things that make it's behavior easier to control and a few bug fixes.
Fork of PS2 by
Diff: PS2KB_INIT.cpp
- Revision:
- 5:ead90ca02b18
- Parent:
- 2:a57bbbec16b1
diff -r fc7f4cc9fbe8 -r ead90ca02b18 PS2KB_INIT.cpp --- a/PS2KB_INIT.cpp Wed Sep 26 05:21:38 2012 +0000 +++ b/PS2KB_INIT.cpp Fri Sep 28 04:03:35 2012 +0000 @@ -21,9 +21,11 @@ * 0xED: Set/Reset status indicators. * 0xF2: Read ID. * 0xF3: Set typematic rate/delay. + * 0xF0: Set scancode set * 0xF4: Enable. */ - char txdat[12] = "\xFF\xED\x07\xF2\xED\x00\xF3\x20\xF3\x00\xF4"; + //char txdat[15] = "\xFF\xED\x07\xF2\xED\x00\xF3\x20\xF3\x00\xF4"; + char txdat[6] = "\xFF\xF5\xF0\x02\xF4"; const int n = sizeof(txdat); int txerrcnt = 0; int rxerrcnt = 0;