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 4:32fd6ee97dff, committed 2010-11-28
- Comitter:
- jimherd
- Date:
- Sun Nov 28 21:38:25 2010 +0000
- Parent:
- 3:f00ee94327c6
- Child:
- 5:79b8535dc5ac
- Commit message:
Changed in this revision
MCP23017.cpp | Show annotated file Show diff for this revision Revisions of this file |
MCP23017.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MCP23017.cpp Sun Nov 28 21:21:17 2010 +0000 +++ b/MCP23017.cpp Sun Nov 28 21:38:25 2010 +0000 @@ -14,8 +14,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +#include "MCP23017.h" #include "mbed.h" -#include "MCP23017.h" union { uint8_t value8[2];
--- a/MCP23017.h Sun Nov 28 21:21:17 2010 +0000 +++ b/MCP23017.h Sun Nov 28 21:38:25 2010 +0000 @@ -21,6 +21,7 @@ #include "mbed.h" /** MCP23017 class + * */ // // Register defines from data sheet - we set IOCON.BANK to 0