Give binary values to my arduino inputs

My advice would be to keep things simple and use the Mega without the shift registers