Code for digital Ohmmeter on AVR.