@@ -88,6 +88,19 @@ void ArduinoIOExpanderClass::initPins()
88
88
89
89
if (_tca.getAddress () == IO_ADD) {
90
90
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
+
91
104
pinMode (IO_WRITE_CH_PIN_00, OUTPUT);
92
105
pinMode (IO_WRITE_CH_PIN_01, OUTPUT);
93
106
pinMode (IO_WRITE_CH_PIN_02, OUTPUT);
@@ -113,18 +126,7 @@ void ArduinoIOExpanderClass::initPins()
113
126
pinMode (IO_READ_CH_PIN_10, INPUT);
114
127
pinMode (IO_READ_CH_PIN_11, INPUT);
115
128
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
+
128
130
} else {
129
131
pinMode (DIN_READ_CH_PIN_00, INPUT);
130
132
pinMode (DIN_READ_CH_PIN_01, INPUT);
0 commit comments