16-Bit I/O Expander with Serial Interface (SPI)

Dependents:   relaekort_til_motorstyring Nucleo_MCP23S17_Test BSM02 POT_V_1_1

Files at this revision

API Documentation at this revision

Comitter:
stjo2809
Date:
Wed Jan 20 10:49:02 2016 +0000
Parent:
2:b74bf9a31168
Commit message:
Version 2 (tested)

Changed in this revision

MCP23S17.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b74bf9a31168 -r b2a44e1e54b8 MCP23S17.cpp
--- 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)