How to convert byte of data to individual button presses?

Delta_G:
You don't need 255. If you do it the smart way you only need 8.

Which is what I have, you have to test with if then else logic anyways.