I have an M-Duino 58, and am trying to implement a simple program for digital I/O, but it isn’t working.
For example, to read I0.0, I think I would use this fragment of code:
const int I00 = 22; // Digital IN pinMode( I00, INPUT ); … Serial.print( digitalRead( I00 )) ;
Pin I0.0 is an isolated digital input. I have connected 12V to I0.0, and grounded its adjacent pin. I see the red LED labeled “0.0” on the top of the module light up, making me believe that I have provided a proper high input, but digitalRead(I00) always gives me a zero.
Is my hardware faulty, or am I missing some code?