Programming AVR microcontroller in C (End of course project)