[En-Nut-Discussion] Input? How does that function already again?

Alexander Baranov baranov at intech21.com
Fri Sep 30 15:16:02 CEST 2005


> I have small Blackout.
> 
> I want to read a tracer in and do not manage it not!
> 
> Only one bit!
> 
> My idea:
> 
> outp(inp(DDRD) & ~0x01, DDRD);
> if((inp(PORTD) & 0x01) > 0){
> 
> }
 WinAVR does not support 'outp', 'inp' any more. You have to write like
if(PIND&0x01)




More information about the En-Nut-Discussion mailing list