- This topic has 1 reply, 1 voice, and was last updated 6 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Mux Shield II Support › digital input row 3
Hi, I have been having difficulty reading input from the third row. Rows 1 and 2 are fine. The code snippet is as follows:
void MuxInput::updateInputs() {
setMode(1,DIGITAL_IN_PULLUP);
setMode(2,DIGITAL_IN_PULLUP);
setMode(3,DIGITAL_IN_PULLUP);
for (int i = 0; i < 16; i++) {
inputs1[i] = digitalReadMS(1, i);
inputs2[i] = digitalReadMS(2, i);
inputs3[i] = digitalReadMS(3, i);
}
Serial.print(inputs3[0]);
}
inputs1 and inputs2 read fine, inputs3 however does not. Any ideas?
As a follow up: I uploaded the example code for digital input with the same result: row three does not work. I first tried with a Duemilanove then with an Uno.