Basic library for MCP23017 16-bit I/O expander using an I2C interface used in aconno ACD52832 dev board.
Dependents: tof100 gaasgjdvas LED_GAME11 tof100
Fork of MCP23017 by
Diff: MCP23017.cpp
- Revision:
- 14:1834cdf54c8f
- Parent:
- 12:6d9d2b277f26
--- a/MCP23017.cpp Mon Nov 29 12:46:43 2010 +0000 +++ b/MCP23017.cpp Mon Sep 26 10:08:33 2016 +0000 @@ -19,6 +19,17 @@ #include "MCP23017.h" #include "mbed.h" +bool interrupt = 0; + +void setInt(){ + interrupt = 1; +} +void clearInt(){ + interrupt = 0; +} +bool getInt(){ + return interrupt; +} union { uint8_t value8[2]; uint16_t value16;