Like I suggested, go do some things on the Learning page - figure how to read an input pin, output that to the serial monitor.
Then read 2-3-4 inputs, combine them into 1 data byte, show that.
Then send that byte to the other board, read it there and set the outputs high & low depending on the state of the bits.