Basic library of routines to interface to a Microchip MCP23017 16-bit I/O expander using an I2C interface.

Dependents:   Assignment_2_herpe Final_V1 ass2 ass2 ... more

Revision:
11:8726c7be6d72
Parent:
10:a3b9eabb0e50
Child:
12:6d9d2b277f26
--- a/MCP23017.h	Mon Nov 29 11:21:18 2010 +0000
+++ b/MCP23017.h	Mon Nov 29 11:46:57 2010 +0000
@@ -21,9 +21,7 @@
 
 #include    "mbed.h"
 
-/** MCP23017 class
- *
- */
+
 //
 // Register defines from data sheet - we set IOCON.BANK to 0
 // as it is easier to manage the registers sequentially.
@@ -45,6 +43,9 @@
 #define     DIR_OUTPUT      0
 #define     DIR_INPUT       1
 
+/** MCP23017 class
+ *
+ */
 class MCP23017 {
 public:
     /** Constructor for the MCP23017 connected to specified I2C pins at a specific address