Basic library of routines to interface to a Microchip MCP23017 16-bit I/O expander using an I2C interface.
Dependents: Assignment_2_herpe Final_V1 ass2 ass2 ... more
Diff: MCP23017.cpp
- Revision:
- 2:2a17f52c550a
- Parent:
- 0:a6a5d942b58f
- Child:
- 4:32fd6ee97dff
--- a/MCP23017.cpp Sun Nov 28 20:47:17 2010 +0000 +++ b/MCP23017.cpp Sun Nov 28 21:10:15 2010 +0000 @@ -14,15 +14,15 @@ 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 "mbed.h" #include "MCP23017.h" -#include "mbed.h" union { uint8_t value8[2]; uint16_t value16; } tmp_data; -using namespace mbed; +// using namespace mbed; /* * */