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

Dependents:   acd52832_beep_buzzer_ints

Fork of MCP23017 by jim herd

Revision:
8:460f7a57725d
Parent:
6:1144e6353b50
Child:
9:e08c29541bc4
--- a/MCP23017.cpp	Sun Nov 28 22:44:56 2010 +0000
+++ b/MCP23017.cpp	Mon Nov 29 10:55:29 2010 +0000
@@ -60,7 +60,7 @@
     shadow_IPOL  = 0;
 }
 
-/* ******************************************************************************
+/*-----------------------------------------------------------------------------
  * pinMode
  */
 void MCP23017::pinMode(int pin, int mode) {
@@ -72,7 +72,7 @@
     writeRegister(IODIR, (unsigned short)shadow_IODIR);
 }
 
-/* ******************************************************************************
+/*-----------------------------------------------------------------------------
  * digitalRead
  */
 int MCP23017::digitalRead(int pin) {