Tell us about yourself!
Did you try to clear results at the beginning of the loop?:(results.value) =0; //clears the register before a new readingOtherwise the old value will stay in the register and will be used over and over again. I did stop flickering leds in this way and I do not need any delay anymore.succesGerard
clear the results at the begin of the loop see my comment for the code linebest regardsGerard
HiGood explanation, program works fine.But its better to use 330 ohms in series with the LEDthanks to the atmel controller the circuit survives, With other controllers you are less Lucky.best regards Gerard