Hello there ! I'm currently having a small issue : i made a program, wich must be able to know the state of 4 switches ( like if they are on 0010 state, or 1110 state, etc...) The problem is, i only have 2 ports free, the others being occupied by other things in my project. Is there a way to have the arduino knowing wich state the switches are ?
I was thinking of using a current divider, but i don't really know how to use them, or how to make it in that specific case.
Thank you in advance for reading and answering :)
( Apologies for bad english, fellow frenchman's speaking :D )