I don't think your shifting of data in does what you want it to do... I would guess it always returns 0xFF00 or maybe 0x7F80 change output |= (IR_PIN & 0x80); to if (IR_PIN & _BV(7)) output |= 0x01; Cheers!
Message
RE: [QUARANTINE] [AVR-Chat] Re: GP2D02 + ATmega32
2006-09-11 by Larry Barello