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 1:d54d7002bae2, committed 2010-11-28
- Comitter:
- jimherd
- Date:
- Sun Nov 28 20:47:17 2010 +0000
- Parent:
- 0:a6a5d942b58f
- Child:
- 2:2a17f52c550a
- Commit message:
Changed in this revision
MCP23017.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MCP23017.h Sun Nov 28 20:41:49 2010 +0000 +++ b/MCP23017.h Sun Nov 28 20:47:17 2010 +0000 @@ -15,11 +15,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "mbed.h" - #ifndef MBED_MCP23017_H #define MBED_MCP23017_H +#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.