Code doesn't work

I am trying to send a 10bit value in one byte. will fix next time