Is input pin 47 actually HIGH? If so that is what I would expect to see. The code will run too fast to see the status of any pin except the last pin that reads HIGH.
david_2018:
Is input pin 47 actually HIGH? If so that is what I would expect to see. The code will run too fast to see the status of any pin except the last pin that reads HIGH.
No there is nothing plugged in other than a jumper from 22 to 23 at the moment
The resistors worked with this.
Thanks for all the help.
I have one further question if anyone knows what i am doing wrong or need to change i would be very grateful.
With the same code in my first post, I am trying to set an array of pins high and then see where pin goes high to see where the jumper cable is connected.
I have the input working and showing on an LCD so i can see where the pin is going high. But i would also like to know what output pin was high.