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.

Dependents:   MbedConsole

Fork of PS2 by Shinichiro Nakamura

Revision:
4:fc7f4cc9fbe8
Parent:
3:e8048e31eaff
Child:
5:ead90ca02b18
--- a/PS2Keyboard.cpp	Wed Sep 26 04:12:42 2012 +0000
+++ b/PS2Keyboard.cpp	Wed Sep 26 05:21:38 2012 +0000
@@ -7,7 +7,7 @@
 #include "PS2Keyboard.h"
 
 PS2Keyboard::PS2Keyboard(PinName clk_pin, PinName dat_pin)
-        : ps2kb_init(clk_pin, dat_pin), ps2kb(clk_pin, dat_pin) {
+        : ps2kb_init(clk_pin, dat_pin), ps2kb(clk_pin, dat_pin, NULL) {
         count=0; //Modification by Jordan Earls!
 }
 
@@ -16,7 +16,7 @@
 
 bool PS2Keyboard::processing(keyboard_event_t *p) {
     bool emit = false;
-    const int c = ps2kb.getc();
+    const int c = ' ';//ps2kb.getc();
     NVIC_SetPriority( EINT3_IRQn, 255 ); 
     //printf("character: %x\r\n", c);
     if (0 <= c) {