Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MCP23S17.cpp
- Revision:
- 9:068b1e8909bb
- Parent:
- 8:841b19734955
- Child:
- 10:fba96791480a
--- 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);