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.
Fork of MCP23S17 by
Diff: MCP23S17.cpp
- Revision:
- 3:b2a44e1e54b8
- Parent:
- 2:b74bf9a31168
- Child:
- 4:6ffd2b1d0385
--- a/MCP23S17.cpp Tue Apr 21 16:20:23 2015 +0000
+++ b/MCP23S17.cpp Wed Jan 20 10:49:02 2016 +0000
@@ -303,6 +303,7 @@
void MCP23S17::_initialization()
{
_write(IOCON_ADDR, 0x2A); // setup af control register (BANK = 0, MIRROR = 0, SEQOP = 1, DISSLW = 0, HAEN = 1, ODR = 0, INTPOL = 1, NC = 0)
+ _nCs = 1;
}
void MCP23S17::_make_opcode(int _hardwareaddress)
