Added support for banked registers

Dependents:   Component_Test_Interface FalconWing MX_Spoile_Test Simple_Power_Distribution ... more

Revision:
3:72da9cd002bd
Parent:
2:2d4ee919e8a7
Child:
4:868db61f5f4e
diff -r 2d4ee919e8a7 -r 72da9cd002bd MCP23017.h
--- a/MCP23017.h	Mon Dec 20 16:04:04 2010 +0000
+++ b/MCP23017.h	Sun Aug 21 13:59:48 2011 +0000
@@ -5,6 +5,7 @@
 *
 * version 0.2 Initial Release
 * version 0.3 Cleaned up
+* version 0.4 Fixed problem with _read method
 */
 #include "mbed.h"
 
@@ -53,7 +54,7 @@
     /** Create an MCP23017 object connected to the specified I2C object and using the specified deviceAddress
     *
     * @param I2C &i2c the I2C port to connect to 
-    * @param char deviceAddress the address of the MSC23017
+    * @param char deviceAddress the address of the MCP23017
     */
     MCP23017(I2C &i2c, char deviceAddress);
 
@@ -105,13 +106,13 @@
     
     /** Write to specified MCP23017 register
     *
-    * @param char address the internal registeraddress of the MSC23017
+    * @param char address the internal registeraddress of the MCP23017
     */
     void _write(char address, char byte);
 
     /** Read from specified MCP23017 register
     *
-    * @param char address the internal registeraddress of the MSC23017
+    * @param char address the internal registeraddress of the MCP23017
     * @returns data from register 
     */
     char _read(char address);