16-Bit I/O Expander with Serial Interface (SPI)
Dependents: relaekort_til_motorstyring Nucleo_MCP23S17_Test BSM02 POT_V_1_1
Diff: MCP23S17.cpp
- Revision:
- 3:b2a44e1e54b8
- Parent:
- 2:b74bf9a31168
--- 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)