Added solution for 8 bit AVR controller