@@ -88,6 +88,19 @@ void ArduinoIOExpanderClass::initPins()
8888
8989 if (_tca.getAddress () == IO_ADD) {
9090 PinStatus status = SWITCH_OFF;
91+ set (IO_WRITE_CH_PIN_00, status);
92+ set (IO_WRITE_CH_PIN_01, status);
93+ set (IO_WRITE_CH_PIN_02, status);
94+ set (IO_WRITE_CH_PIN_03, status);
95+ set (IO_WRITE_CH_PIN_04, status);
96+ set (IO_WRITE_CH_PIN_05, status);
97+ set (IO_WRITE_CH_PIN_06, status);
98+ set (IO_WRITE_CH_PIN_07, status);
99+ set (IO_WRITE_CH_PIN_08, status);
100+ set (IO_WRITE_CH_PIN_09, status);
101+ set (IO_WRITE_CH_PIN_10, status);
102+ set (IO_WRITE_CH_PIN_11, status);
103+
91104 pinMode (IO_WRITE_CH_PIN_00, OUTPUT);
92105 pinMode (IO_WRITE_CH_PIN_01, OUTPUT);
93106 pinMode (IO_WRITE_CH_PIN_02, OUTPUT);
@@ -113,18 +126,7 @@ void ArduinoIOExpanderClass::initPins()
113126 pinMode (IO_READ_CH_PIN_10, INPUT);
114127 pinMode (IO_READ_CH_PIN_11, INPUT);
115128
116- set (IO_WRITE_CH_PIN_00, status);
117- set (IO_WRITE_CH_PIN_01, status);
118- set (IO_WRITE_CH_PIN_02, status);
119- set (IO_WRITE_CH_PIN_03, status);
120- set (IO_WRITE_CH_PIN_04, status);
121- set (IO_WRITE_CH_PIN_05, status);
122- set (IO_WRITE_CH_PIN_06, status);
123- set (IO_WRITE_CH_PIN_07, status);
124- set (IO_WRITE_CH_PIN_08, status);
125- set (IO_WRITE_CH_PIN_09, status);
126- set (IO_WRITE_CH_PIN_10, status);
127- set (IO_WRITE_CH_PIN_11, status);
129+
128130 } else {
129131 pinMode (DIN_READ_CH_PIN_00, INPUT);
130132 pinMode (DIN_READ_CH_PIN_01, INPUT);
0 commit comments