On Friday 04 January 2008 23:55:25 J D Freeman wrote:
>       while(1)
>       {
>               uint8_t x;
>               x = PIND;
>               if( x != 0)
>               {

Which pin of PIND is connected to your switch? All of them? Maybe you should 
try a mask? "if (x & 0x01)" for example.

/Janne

-- 
You have the capacity to learn from mistakes.  You'll learn a lot today.


_______________________________________________
AVR-chat mailing list
AVR-chat@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to