Hello Chris! Your problem is really simple, I made the same mistake a couple of times.
> loop_until_bit_is_set(PORTB, PB5); // Wait until fully extended. You need to use the PINB register instead of PORTB for reading the inputs. PORTB will only read back the value you have put there forever. Regards, Peter _______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
