http://techawarey.com/embedded/avr-gpio-tutorial/
AVR GPIO TUTORIAL