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
Revision 8:460f7a57725d, committed 2010-11-29
- Comitter:
- jimherd
- Date:
- Mon Nov 29 10:55:29 2010 +0000
- Parent:
- 7:c282ea90cdb5
- Child:
- 9:e08c29541bc4
- Commit message:
Changed in this revision
MCP23017.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {