Ryan
You seem to be reading 3 diff adc ports. First of all, you have to tell us what is each one for any of the code I gave to make sense.
The code I gave wants only 1 adc port to sense the light intensity. So, the other 2 are redundant. And the code I gave should do exactly what you asked for.
Check your code. You seem to have got it diff from what I have given you.
in Pseudo code what I have sent you does this
if CurrentADC != PreviousADC
Output = high
Wait 1 second
Output = Low
PreviousADC = CurrentADC
endif
Jerson
Bookmarks