I wanna realize when P1IN = 0x07 al output pins 0x7F get high.
I'm just started with C so i'm a complete beginner.

What do you mean with that infite loop?