Hello Unregistered ,
Originally Posted by mister_e 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?
PORTB = (LIGHT >>2) PORTD.6 = LIGHT.0 PORTD.7 = LIGHT.1
portb = (light >>2)
Morris Beasley Manufacturing Test Technician B.S. Industrial Technology (2007) For more information on our robotics, please visit: http://www.ish-electronics.webs.com
Forum Rules
Bookmarks