Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

[QUARANTINE] [AVR-Chat] Re: GP2D02 + ATmega32

2006-09-12 by katraven1

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!
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.