Untested main.c code, initializes the LEDs with bits 0 and 6, and lights up one LED or the other depending on which sensor detects an object close to it