v 0.4
Dependents: MCP23S17Test MCP23S17_Basic_IO_Demo HelloWorld Lab3-SnakeGame ... more
Diff: MCP23S17.cpp
- Revision:
- 3:089a2a754567
- Parent:
- 2:6144709f1700
- Child:
- 4:d501c74550a0
diff -r 6144709f1700 -r 089a2a754567 MCP23S17.cpp
--- a/MCP23S17.cpp Sat Aug 21 14:46:59 2010 +0000
+++ b/MCP23S17.cpp Sun Aug 22 12:05:06 2010 +0000
@@ -43,6 +43,10 @@
_write(IODIRB, direction);
}
+ void intconA(char interruptsEnabledMask) {
+ _write(INTCONA, interruptsEnabledMask);
+ }
+
void MCP23S17::outputA(char byte) {
_write(OLATA, byte);
}
MCP23S17 I/O Expander