My code for use on my atmega 32 mcu.