Aleksandar Kodzhabashev
/
TrackballQuery
An example of using polling PS/2 using the modified mbed PS/2 library
Diff: mylib/PS2/PS2MS_INIT.cpp
- Revision:
- 9:2c85d7f99a14
- Parent:
- 8:41b35bda9d48
- Child:
- 10:37e7c46837dc
--- a/mylib/PS2/PS2MS_INIT.cpp Thu Mar 06 10:38:43 2014 +0000 +++ b/mylib/PS2/PS2MS_INIT.cpp Thu Mar 06 18:09:37 2014 +0000 @@ -23,10 +23,11 @@ * 0xE8: Set resolution. * 0xE6: Set scaling. * 0xF4: Enable device. + * 0xF0: Set remote mode */ //char txdat[17] = "\xFF\xFF\xFF\xF3\xC8\xF3\x64\xF3\x50\xF2\xE8\x03\xE6\xF3\x28\xF4"; //char txdat[11] = "\xFF\xFF\xFF\xF2\xE8\x03\xE6\xF3\xC8\xF4"; - char txdat[11] = "\xFF\xFF\xFF\xF2\xE8\x03\xE6\xF3\x28\xF4"; + char txdat[11] = "\xFF\xFF\xFF\xF2\xE8\x03\xE6\xF3\x28\xF0"; const int n = sizeof(txdat); int txerrcnt = 0; int rxerrcnt = 0;