Quote Originally Posted by mister_e View Post
Code:
        PORTB = (LIGHT >>2)
        PORTD.6 = LIGHT.0
        PORTD.7 = LIGHT.1
Doesn't this line just shift everything two bits to the right:
Code:
portb = (light >>2)
By doing this I'm actually losing two bits right?