I've got a couple of 08M2 circuits acting as light detectors to switch battery-powered lights on at dusk. I use a simple loop to check the light level, and am just wondering if there's a more efficient code that would reduce the 08M2's current drain while it's waiting for dusk. Would lengthening the PAUSE 5000 help, for instance? Or is it just not worth bothering about?
Code:
main:
readadc c.4,b1 ; light detector
if b1<70 then goto lights_on
pause 5000
goto main