Libraries and Example of mbed parallel bus using I2C port expanders

Dependencies:   HDSP253X mbed PCF8574_Bus

Revision:
4:745fbbd5e4e5
Parent:
2:1dab1089c332
Child:
5:38b853bb1afa
--- a/Keyboard.cpp	Sun Aug 21 19:42:48 2011 +0000
+++ b/Keyboard.cpp	Tue Aug 23 20:26:05 2011 +0000
@@ -49,7 +49,8 @@
     // CDA Key pressed  
     _KeyReady = true;
         
-    data = _read();    // Get the switchvalue and decode it    
+    // Get the switchvalue and decode it
+    data = _read() & D_KEYBOARD_MASK;       
     switch (data) {
       case D_KEYBOARD_MODE:      _KeyCode = KEY_MODE;
                                  break;