hmmz... jst tried using that line instead.. now it says the ir_reading = 0... =( --- In AVR-Chat@yahoogroups.com, "Larry Barello" <yahoo@...> wrote: > > 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
[QUARANTINE] [AVR-Chat] Re: GP2D02 + ATmega32
2006-09-12 by katraven1