Yahoo Groups archive

AVR-Chat

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

Message

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

2006-09-11 by Larry Barello

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.