Forked from romilly. Changed the way SPI handler is injected in constructor
Fork of MCP23S17 by
Diff: MCP23S17.cpp
- Revision:
- 9:068b1e8909bb
- Parent:
- 8:841b19734955
- Child:
- 10:ca0429a15915
--- a/MCP23S17.cpp Mon Aug 23 10:57:59 2010 +0000 +++ b/MCP23S17.cpp Sat Aug 28 09:48:38 2010 +0000 @@ -2,7 +2,7 @@ * Copyright (c) 2010 Romilly Cocking * Released under the MIT License: http://mbed.org/license/mit * -* version 0.3 +* version 0.4 */ #include "mbed.h" @@ -47,6 +47,9 @@ _write(port, IODIRA, direction); } +void MCP23S17::configurePullUps(Port port, char offOrOn) { + _write(port, GPPUA, offOrOn); +} void MCP23S17::interruptEnable(Port port, char interruptsEnabledMask) { _write(port, GPINTENA, interruptsEnabledMask);