From Integer by Keyboard to LED binary 8bits

I would like to send data(red line) by Serial